Beispiel #1
0
        public ActionResult Edit(int id)
        {
            var question   = _questionRepository.Questions.WithId(id);
            var categories = _questionRepository.Categories;
            var users      = Roles.GetUsersInRole(UserRoles.Attorney);

            var model = EditViewModel.CreateViewModel(question, categories, users);

            return(View(model));
        }