示例#1
0
        public ActionResult Index()
        {
            IRolesServicio srv = Servicios.RolesServicio();

            ViewBag.Perfiles = new SelectList(srv.Get(), "RolID", "Nombre");
            return(PartialView("Usuarios"));
        }
示例#2
0
        // GET: Backend/Listas
        public ActionResult Perfiles()
        {
            IRolesServicio srv   = Servicios.RolesServicio();
            List <Rol>     roles = srv.Get().ToList();

            return(Json(roles, JsonRequestBehavior.AllowGet));
        }