Beispiel #1
0
        public async Task <ActionResult> Create()
        {
            var roles = await _authorizationAppService.ListarRoles();

            ViewBag.RoleId = new SelectList(roles, "Name", "Name");
            return(View());
        }
        public ActionResult Index()
        {
            var roles = _authorizationAppService.ListarRoles();

            return(View(roles.Result));
        }