// GET: AdminRoles public ActionResult Index() { List <Rol> listaRoles = objRolDao.findAll(); return(View(listaRoles)); }
public ActionResult Create() { //Get the list of Roles ViewBag.RoleId = new SelectList(objRolDao.findAll(), "NameRol", "NameRol"); return(View()); }