public ActionResult UpdateOptions(QuestionOptionUpdateViewModel questionOptionUpdateViewModel) { if (ModelState.IsValid) { _questionOptionService.Update(questionOptionUpdateViewModel.QuestionOption); } TempData["UpdateOption"] = 1; return(View(questionOptionUpdateViewModel)); }
public ActionResult UpdateOptions(int questionOptionId, int questionId, int surveyId) { var model = new QuestionOptionUpdateViewModel { QuestionOption = _questionOptionService.GetById(questionOptionId), QuestionId = questionId, SurveyId = surveyId }; return(View(model)); }