예제 #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);
        }
예제 #2
0
 public static Notice From(AmendedNoticeViewModel vm)
 {
     throw new NotImplementedException();
 }