コード例 #1
0
 public PageOfPostsViewModel(PageOf<IFrontMatter, FrontMatterSearchCriteria> entity, IMarkupProcessorFactory markupProcessorFactory)
 {
     Count = entity.Count;
     Entities = entity.Entities.Select(e => new PostViewModel(e, markupProcessorFactory)).ToList();
     SearchCriteria = new PostSearchCriteriaViewModel(entity.SearchCriteria);
     TotalCount = entity.TotalCount;
 }
コード例 #2
0
 public PageOfPostsViewModel(PageOf <IFrontMatter, FrontMatterSearchCriteria> entity, IMarkupProcessorFactory markupProcessorFactory)
 {
     Count          = entity.Count;
     Entities       = entity.Entities.Select(e => new PostViewModel(e, markupProcessorFactory)).ToList();
     SearchCriteria = new PostSearchCriteriaViewModel(entity.SearchCriteria);
     TotalCount     = entity.TotalCount;
 }