using CoviDok.Api.Objects; using System; using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; namespace CoviDok.Data.Model { public class Assistant : RoleUser { public int? DoctorId { get; set; } public void UpdateSelf(PublicAssistant assistant) { FirstName = assistant.FirstName; LastName = assistant.LastName; Email = assistant.Email; ImageId = assistant.ImageId; DoctorId = assistant.DoctorId; } public PublicAssistant ToPublic() { return new PublicAssistant { FirstName = FirstName, LastName = LastName, Email = Email, ImageId = ImageId, Id = Id, DoctorId = DoctorId, Role = Api.Role.Ast }; } } }