public ActionResult Delete(int id, RequestModel rm) { try { ClientRequestForm Request = sr.GetById((long)id); sr.Delete(Request); sr.Commit(); } catch (DataException /* dex */) { return(View()); } return(RedirectToAction("Index")); }