diff --git a/IRaCIS.Core.Application/Service/Common/_MapConfig.cs b/IRaCIS.Core.Application/Service/Common/_MapConfig.cs index 3b0aaa368..02a1990e8 100644 --- a/IRaCIS.Core.Application/Service/Common/_MapConfig.cs +++ b/IRaCIS.Core.Application/Service/Common/_MapConfig.cs @@ -27,7 +27,8 @@ namespace IRaCIS.Core.Application.Service - CreateMap(); + CreateMap() + .ForMember(t => t.EmailNoticeUserList, u => u.MapFrom(c => c.EmailNoticeUserTypeList)); CreateMap() .ForMember(t => t.ParentCode, u => u.MapFrom(c => c.Parent.Code)); diff --git a/IRaCIS.Core.Domain/Common/EmailNoticeConfig.cs b/IRaCIS.Core.Domain/Common/EmailNoticeConfig.cs index 08b95ac22..d086d5e48 100644 --- a/IRaCIS.Core.Domain/Common/EmailNoticeConfig.cs +++ b/IRaCIS.Core.Domain/Common/EmailNoticeConfig.cs @@ -59,8 +59,8 @@ namespace IRaCIS.Core.Domain.Models public string Description { get; set; } = string.Empty; - public string AttachName { get; set; } - public string AttachNameCN { get; set; } + public string AttachName { get; set; } = string.Empty; + public string AttachNameCN { get; set; } = string.Empty;