private void AddDomainLicenseDetailClaims(double domainKey)
{
DomainLicenseDetail domainLicenseDetail =
domainLicenseDetailsRepository.GetDomainLicenseDetailByDomainKey(domainKey);
if (domainLicenseDetail != null)
{
ClaimHelper.AddClaim(new Claim(CaresUserClaims.DomainLicenseDetail,
ClaimHelper.Serialize(
new DomainLicenseDetailClaim
{
UserDomainKey = domainLicenseDetail.UserDomainKey,
Branches = domainLicenseDetail.Branches,
FleetPools = domainLicenseDetail.FleetPools,
Employee = domainLicenseDetail.Employee,
RaPerMonth = domainLicenseDetail.RaPerMonth,
Vehicles = domainLicenseDetail.Vehicles
}),
typeof(DomainLicenseDetailClaim).AssemblyQualifiedName));
}
}