public ArticleListViewModel(Category category) { this.Category = category; this.ArticleViewModels = category.Articles .Select (a => new ArticleViewModel(a)) .OrderBy (a => a.Article.Position) .ToList(); }
public CategoryViewModel(Category category) { this.Category = category; }