//select por id public ActionResult Details(int id) { var rol = ro.BuscarRol(id); var mostrar = Mapper.Map <Models.TbRoles>(rol); return(View(mostrar)); }
//select por id public ActionResult Details(int id) { if (Session["UserEmail"] != null) { var rol = ro.BuscarRol(id); var mostrar = Mapper.Map <Models.TbRoles>(rol); return(View(mostrar)); } else { return(RedirectToAction("Login", "Login")); } }