public ActionResult Update(Survey survey) { var createdUser = _iFSurvey.Update(SurveyId, survey); _iFQuestion.Delete(survey.DeletedQuestions); _iFQuestion.Create(createdUser.SurveyId, CredentialId, survey.Questions); return(RedirectToAction("Index")); }
public ActionResult Update(Survey survey) { try { survey = _iFSurvey.Update(survey); return(Json("")); } catch (Exception ex) { return(View(ex)); } }
public ActionResult Update(Survey survey) { var createdUser = _iFSurvey.Update(SurveyId, survey); return(RedirectToAction("Index")); }