internal static Claim ToDomain(this IdentityClaimModelBase identityClaimModel) { NullGuard.NotNull(identityClaimModel, nameof(identityClaimModel)); return(string.IsNullOrWhiteSpace(identityClaimModel.ClaimValue) ? identityClaimModel.Claim.ToDomain() : ClaimHelper.CreateClaim(identityClaimModel.Claim.ClaimType, identityClaimModel.ClaimValue)); }
internal static Claim ToDomain(this ClaimModel claimModel) { NullGuard.NotNull(claimModel, nameof(claimModel)); return(ClaimHelper.CreateClaim(claimModel.ClaimType, claimModel.ClaimValue)); }