public virtual async Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input) { var user = await UserManager.GetByIdAsync(id); (await UserManager.SetRolesAsync(user, input.RoleNames)).CheckErrors(); await UserRepository.UpdateAsync(user); }
public async Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input) { var user = await _userManager.GetByIdAsync(id); CheckIdentityErrors(await _userManager.SetRolesAsync(user, input.RoleNames)); }
public virtual Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input) { return(UserAppService.UpdateRolesAsync(id, input)); }