Ejemplo n.º 1
0
        public static AmendedNoticeViewModel ToAmendedNoticeViewModel(Notice notice)
        {
            AmendedNoticeViewModel vm = new AmendedNoticeViewModel
            {
                Id               = notice.NoticeId,
                Title            = notice.Title,
                NoticeBoardId    = notice.NoticeBoardId,
                Description      = notice.Description,
                DateCreated      = notice.DateCreated,
                ModeratorComment = notice.ModeratorComment,
                DateReviewed     = notice.DateReviewed,
                NoticeBoardName  = notice.NoticeBoard.Title
            };

            return(vm);
        }
Ejemplo n.º 2
0
 public static Notice From(AmendedNoticeViewModel vm)
 {
     throw new NotImplementedException();
 }