erp-platform/api/modules/Erp.Notifications/Erp.Notifications.Application/NotificationApplicationAutoMapperProfile.cs

19 lines
598 B
C#
Raw Normal View History

2025-05-06 06:45:49 +00:00
using AutoMapper;
2025-11-11 19:49:52 +00:00
using Erp.Notifications.Entities;
using Erp.Notifications.NotificationRules;
2025-05-06 06:45:49 +00:00
2025-11-11 19:49:52 +00:00
namespace Erp.Notifications.Application;
2025-05-06 06:45:49 +00:00
public class NotificationApplicationAutoMapperProfile : Profile
{
public NotificationApplicationAutoMapperProfile()
{
CreateMap<NotificationRule, NotificationRuleDto>();
CreateMap<Notification, NotificationDto>()
.ForMember(d => d.CreatorFullname, o => o.Ignore())
.ForMember(d => d.TenantId, o => o.Ignore());
CreateMap<CreateUpdateNotificationRuleDto, NotificationRule>(MemberList.Source);
}
}
2025-11-11 19:49:52 +00:00