public async Task AssignRolesToUser(AddUserRoles command)
        {
            ClientPortalUser user = await this._userManager.FindByNameAsync(command.UserRoles.User);

            await this._userManager.AddToRolesAsync(user.Id, command.UserRoles.Roles.ToArray());
        }
Exemple #2
0
 public async Task <ApiResult> AddRoles(AddUserRoles request)
 {
     return(await _mediator.Send(request));
 }