diff --git a/CoviDok/Api/Objects/PublicDoctor.cs b/CoviDok/Api/Objects/PublicDoctor.cs index 3d64c09..c552729 100644 --- a/CoviDok/Api/Objects/PublicDoctor.cs +++ b/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; } } } diff --git a/CoviDok/Data/Model/Doctor.cs b/CoviDok/Data/Model/Doctor.cs index 926919b..b73100b 100644 --- a/CoviDok/Data/Model/Doctor.cs +++ b/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 }; }