Example #1
0
 public async Task AddUserRoles([FromBody] AddUserRolesRequest request)
 {
     await _authService.AddToRolesAsync(request);
 }
Example #2
0
        public async Task AddToRolesAsync(AddUserRolesRequest request)
        {
            var applicationUser = await _userManager.FindByNameAsync(request.Username);

            await AssignRolesAsync(applicationUser, request.Roles);
        }