public ActionResult CreateStatement(Statement statement) { ModelState.Remove("id_statement"); ModelState.Remove("status"); try { if (recordsDAO.AddStatement(statement)) { return(RedirectToAction("Index")); } else { return(View("dekCreateStatement")); } } catch { return(View("dekCreateStatement")); } }