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