예제 #1
0
        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));
        }
예제 #3
0
 public virtual Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input)
 {
     return(UserAppService.UpdateRolesAsync(id, input));
 }