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