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

20 lines
670 B
C#
Raw 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()
{
2026-05-11 09:37:52 +00:00
CreateMap<NotificationType, NotificationTypeDto>();
2026-02-24 20:44:16 +00:00
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);
}
}