public ActionResult Delete(int id) { try { var model = new EventType(); model.Delete(id); return(RedirectToAction("Index")); } catch (Exception ex) { return(View("Error")); } }