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"));
        }
Пример #2
0
 public ActionResult Update(Survey survey)
 {
     try
     {
         survey = _iFSurvey.Update(survey);
         return(Json(""));
     }
     catch (Exception ex)
     {
         return(View(ex));
     }
 }
Пример #3
0
        public ActionResult Update(Survey survey)
        {
            var createdUser = _iFSurvey.Update(SurveyId, survey);

            return(RedirectToAction("Index"));
        }