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; }
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; }