17 lines
600 B
C#
17 lines
600 B
C#
using AutoMapper;
|
|
using Kurs.Notifications.Entities;
|
|
using Kurs.Notifications.NotificationRules;
|
|
|
|
namespace Kurs.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);
|
|
}
|
|
}
|