public ActionResult Create(RoleBLL Roles) { try { // TODO: Add insert logic here using (BusinessLogicLayer.ContextBLL ctx = new BusinessLogicLayer.ContextBLL()) { ctx.RoleCreate(Roles.RoleName); } return(RedirectToAction("Index")); } catch (Exception ex) { Logger.Logger.Log(ex); return(View("Index")); } }