public QuestionCategoryModel Create(QuestionCategory questionCategory) { return new QuestionCategoryModel(_urlHelper, questionCategory); }
public QuestionCategoryModel(UrlHelper urlHelper, QuestionCategory questionCategory) { Url = urlHelper.Link("questionCategory", new { id = questionCategory.Id }); Id = questionCategory.Id; Name = questionCategory.CategoryName; }