public ActionResult Create(Survey survey)
        {
            var createdUser = _iFSurvey.Create(SurveyId, survey);

            _iFQuestion.Create(createdUser.SurveyId, CredentialId, survey.Questions);
            return(RedirectToAction("Index"));
        }
Beispiel #2
0
 public JsonResult Create(Survey survey)
 {
     try
     {
         survey = _iFSurvey.Create(survey);
         return(Json(""));
     }
     catch (Exception ex)
     {
         return(Json(ex));
     }
 }
Beispiel #3
0
        public ActionResult Create(Survey survey)
        {
            var createdUser = _iFSurvey.Create(SurveyId, survey);

            return(RedirectToAction("Index"));
        }