Ejemplo n.º 1
0
        public async Task <ActionResult> UserRolesControl(AspNetUserDto value)
        {
            ViewData["SelectedListForRoles"] = new SelectedListHelpers().GetSelectedList(_iAspNetRole.GetAspNetRoles());
            ViewData["UserId"] = value.Id;

            return(View(await _iAspNetUserRoles.Get(new AspNetUserRolesDto {
                UserId = value.Id
            })));
        }
Ejemplo n.º 2
0
 public ActionResult Index(int?page)
 {
     return(View(_iAspNetRole.GetAspNetRoles().ToPagedList(page ?? 1, 10)));
 }