コード例 #1
0
        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);
        }
コード例 #2
0
 public static NoticeBoard From(NoticeBoardViewModel vm)
 {
     throw new NotImplementedException();
 }