Example #1
0
 public async Task RemoveFromRoleAsync(ApplicationUser user, string roleName, CancellationToken cancellationToken)
 {
     cancellationToken.ThrowIfCancellationRequested();
     role.RoleName = roleName;
     role.UserId   = user.ID;
     await objRole.DeleteRole(role);
 }
Example #2
0
        public async Task <IdentityResult> DeleteAsync(ApplicationRole role, CancellationToken cancellationToken)
        {
            cancellationToken.ThrowIfCancellationRequested();

            await objRole.DeleteRole(role);

            return(IdentityResult.Success);
        }