public static NoticeBoardViewModel ToNoticeBoardViewModel(NoticeBoard nb) { var n = new List <NoticeViewModel>(); nb.Notices.ForEach(x => n.Add(NoticeMappings.To <NoticeViewModel>(x))); NoticeBoardViewModel vm = new NoticeBoardViewModel { Id = nb.NoticeBoardId, Title = nb.Title, Description = nb.Description, IsOfficial = nb.IsOfficial, IsMandatory = nb.IsMandatory, Notices = n }; return(vm); }
public static NoticeBoard From(NoticeBoardViewModel vm) { throw new NotImplementedException(); }