コード例 #1
0
ファイル: ModelFactory.cs プロジェクト: Aleksask/InfoDigest
 public QuestionCategoryModel Create(QuestionCategory questionCategory)
 {
     return new QuestionCategoryModel(_urlHelper, questionCategory);
 }
コード例 #2
0
 public QuestionCategoryModel(UrlHelper urlHelper, QuestionCategory questionCategory)
 {
     Url = urlHelper.Link("questionCategory", new { id = questionCategory.Id });
     Id = questionCategory.Id;
     Name = questionCategory.CategoryName;
 }