示例#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);
        }
示例#2
0
 public virtual Task UpdateRolesAsync(Guid id, IdentityUserUpdateRolesDto input)
 {
     return(UserAppService.UpdateRolesAsync(id, input));
 }