sozsoft-platform/api/modules/Sozsoft.Notifications/Sozsoft.Notifications.Application/NotificationApplicationAutoMapperProfile.cs

19 lines
610 B
C#
Raw Permalink Normal View History

2026-02-24 20:44:16 +00:00
using AutoMapper;
using Sozsoft.Notifications.Entities;
using Sozsoft.Notifications.NotificationRules;
namespace Sozsoft.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);
}
}