Пример #1
0
 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;
 }