Browse Source

Added Phone property to PublicDoctor

master
Daniel Gyulai 4 years ago
parent
commit
7bd137931d
  1. 1
      CoviDok/Api/Objects/PublicDoctor.cs
  2. 4
      CoviDok/Data/Model/Doctor.cs

1
CoviDok/Api/Objects/PublicDoctor.cs

@ -15,6 +15,7 @@ namespace CoviDok.Api.Objects
public string ImageId { get; set; }
public string Email { get; set; }
public Role Role { get; set; }
public string Phone { get; set; }
}
}

4
CoviDok/Data/Model/Doctor.cs

@ -17,6 +17,7 @@ namespace CoviDok.Data.Model
LastName = doctor.LastName;
Email = doctor.Email;
ImageId = doctor.ImageId;
Phone = Phone;
}
public PublicDoctor ToPublic()
{
@ -27,7 +28,8 @@ namespace CoviDok.Data.Model
Email = Email,
ImageId = ImageId,
Id = Id,
Role = Api.Role.Doc
Role = Api.Role.Doc,
Phone = Phone
};
}

Loading…
Cancel
Save