public ActionResult Create([Bind(Include = "AnswerID,AnswerString,ModuleID,PictureCount")] Answer answer) { try { if (ModelState.IsValid) { using (Repos repo = new Repos()) { repo.AddAnswer(answer); } return RedirectToAction("Create", new { id = answer.ModuleID }); } } catch (Exception) { } return RedirectToAction("Create", new { error = "You cannot add duplicate answers" }); }