erp-platform/api/modules/Erp.Notifications/Erp.Notifications.Application/NotificationApplicationAutoMapperProfile.cs
2025-11-11 22:49:52 +03:00

18 lines
598 B
C#

using AutoMapper;
using Erp.Notifications.Entities;
using Erp.Notifications.NotificationRules;
namespace Erp.Notifications.Application;
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);
}
}