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()); }
public async Task <ApiResult> AddRoles(AddUserRoles request) { return(await _mediator.Send(request)); }