Browse Source

Refactor: Reorder methods of IdentityRole.

pull/81/head
Halil İbrahim Kalkan 10 years ago
parent
commit
aede3316f1
  1. 14
      src/Volo.Abp.Identity/Volo/Abp/Identity/IdentityRole.cs

14
src/Volo.Abp.Identity/Volo/Abp/Identity/IdentityRole.cs

@ -77,6 +77,13 @@ namespace Volo.Abp.Identity
} }
} }
public void RemoveClaim([NotNull] Claim claim)
{
Check.NotNull(claim, nameof(claim));
Claims.RemoveAll(c => c.ClaimType == claim.Type && c.ClaimValue == claim.Value);
}
/// <summary> /// <summary>
/// Returns the name of the role. /// Returns the name of the role.
/// </summary> /// </summary>
@ -85,12 +92,5 @@ namespace Volo.Abp.Identity
{ {
return Name; return Name;
} }
public void RemoveClaim([NotNull] Claim claim)
{
Check.NotNull(claim, nameof(claim));
Claims.RemoveAll(c => c.ClaimType == claim.Type && c.ClaimValue == claim.Value);
}
} }
} }

Loading…
Cancel
Save