public ActionResult GetAdminModal(int representativeId, int questionId, int lawId) { var model = new RepresentativeAnswerTestModel { QuestionId = questionId, RepresentativeId = representativeId, LawId = lawId }; return(PartialView("_AdminModal", model)); }
public ActionResult SubmitRepresentativeAnswer(RepresentativeAnswerTestModel model) { QuestionsService service = new QuestionsService(); TryUpdateModel(model); service.PostAnswer(model.QuestionId, model.RepresentativeId, model.Answer); return(RedirectToAction("GetLawQuestionsDetails", "JavnaRasprava", new { lawId = model.LawId })); }