public async Task <IActionResult> AccessRights() { var user = await _userManager.GetUserAsync(User); var _roles = await _userManager.GetRolesAsync(user); if (user == null) { throw new ApplicationException($"Unable to load user with ID '{_userManager.GetUserId(User)}'."); } var model = new AccessRightsViewModel { AccessRights = _DbPortal.GetT_PRT_ORG_USERS_ByUserID_WithClientList(user.Id), Clients = _DbPortal.GetT_PRT_CLIENTS(), Roles = _roles.ToList() }; return(View(model)); }
public IActionResult ClientList() { var model = _DbPortal.GetT_PRT_CLIENTS(); return(View(model)); }