Open Closed

RemoveFromRole doesn't Remove Role ! #208


0
behiunforgiven created

I use this function to remove roles, why user roles remain ?

public async Task DeleteRolesAsync(List<string> deleteList, long userId)
       {
           
               foreach (var roleName in deleteList)
               {
                   IdentityResult deletionResult = await _userManager.RemoveFromRoleAsync(userId, roleName);
               }
           
       }

2 Answer(s)