// DELETE public ActionResult DeleteState(int state) { try { var results = stateAdapter.DeleteState(state); if (results != 1) { return(View("Error")); } return(RedirectToAction("ViewAllStates")); } catch { return(View()); } }