Exemplo n.º 1
0
        // GET: AdminRoles
        public ActionResult Index()
        {
            List <Rol> listaRoles = objRolDao.findAll();

            return(View(listaRoles));
        }
Exemplo n.º 2
0
 public ActionResult Create()
 {
     //Get the list of Roles
     ViewBag.RoleId = new SelectList(objRolDao.findAll(), "NameRol", "NameRol");
     return(View());
 }