Пример #1
0
 public static Domain.NotificationAnswer   MapToDomain(DTO.NotificationAnswer notificationAnswer)
 {
     Domain.NotificationAnswer domain = new Domain.NotificationAnswer
     {
         Content        = notificationAnswer.Content,
         Attending      = notificationAnswer.Attending,
         NotificationId = notificationAnswer.NotificationId
     };
     return(domain);
 }
Пример #2
0
        public static DTO.NotificationAnswer Map(Domain.NotificationAnswer notificationAnswer)
        {
            DTO.NotificationAnswer dto = new DTO.NotificationAnswer
            {
                Id             = notificationAnswer.Id,
                Content        = notificationAnswer.Content,
                Attending      = notificationAnswer.Attending,
                NotificationId = notificationAnswer.NotificationId
            };

            return(dto);
        }