예제 #1
0
        //select por id
        public ActionResult Details(int id)
        {
            var rol     = ro.BuscarRol(id);
            var mostrar = Mapper.Map <Models.TbRoles>(rol);

            return(View(mostrar));
        }
예제 #2
0
 //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"));
     }
 }