コード例 #1
0
        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"));
        }