public async Task AddUserRoles([FromBody] AddUserRolesRequest request) { await _authService.AddToRolesAsync(request); }
public async Task AddToRolesAsync(AddUserRolesRequest request) { var applicationUser = await _userManager.FindByNameAsync(request.Username); await AssignRolesAsync(applicationUser, request.Roles); }