Exemple #1
0
 public NotificationProfile()
 {
     CreateMap <Notification, NotificationDto>()
     .ForMember(dest => dest.CreatedDetail, opt => opt.MapFrom(src => src.Created))
     .ForMember(dest => dest.NotificationType, opt => opt.MapFrom(src => NotificationType.From(src.NotificationTypeId).Name))
     .ForMember(dest => dest.NotificationClassification, opt => opt.MapFrom(src => NotificationClassification.From(src.NotificationClassificationId).Name));
 }