diff --git a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs index d4fba5827..1b1eea265 100644 --- a/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs +++ b/IRaCIS.Core.Application/Service/Doctor/DTO/AttachmentModel.cs @@ -24,6 +24,8 @@ public string FirstName { get; set; } = string.Empty; public string FullName => LastName + " / " + FirstName; public string LastName { get; set; } = string.Empty; + + public string UserName { get; set; } } public class SetAttachmentAuthorizedView diff --git a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs index 6d5c78e1a..2b48f6ac7 100644 --- a/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Doctor/_MapConfig.cs @@ -76,6 +76,7 @@ namespace IRaCIS.Core.Application.Service .ForMember(d => d.ChineseName, u => u.MapFrom(t => t.Doctor.ChineseName)) .ForMember(d => d.FirstName, u => u.MapFrom(t => t.Doctor.FirstName)) .ForMember(d => d.LastName, u => u.MapFrom(t => t.Doctor.LastName)) + .ForMember(d => d.UserName, u => u.MapFrom(t => t.Doctor.UserRole.UserName)) ; CreateMap(); CreateMap();