// GET: Roles/Details/5 public ActionResult Details(int id) { try { RoleBLL it = null; using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL()) { it = ctx.RoleFindByID(id); } return(View(it)); }catch (Exception ex) { Logger.Logger.Log(ex); return(View("Error")); } }