public ActionResult Create(QuestionModel model) { try { int id2 = questionFacade.CreateQuestion(model.Question, model.Area); return(RedirectToAction("Edit", new { id = id2 })); } catch { return(View()); } }
public ActionResult Create(QuestionEditModel model) { try { // TODO: Add insert logic here int questionID = questionFacade.CreateQuestion(model.Question, model.SelectedTopic); return(RedirectToAction("CreateAnswer", new { questionID = questionID })); } catch { return(View()); } }