Beispiel #1
0
        public override ClaimsPrincipal ClaimsPrincipal()
        {
            var claims = Claims();

            claims.Add(new Claim(CustomClaims.Address, AddressInformation?.Complement ?? ""));
            claims.Add(new Claim(CustomClaims.Identification, Identification?.Formatted ?? ""));
            claims.Add(new Claim(CustomClaims.AddressId,
                                 AddressId != Guid.Empty || AddressId != null ? AddressId.ToString() : ""));
            return(new ClaimsPrincipal(new[] { new ClaimsIdentity(claims) }));
        }
 internal Address MapToDomain()
 {
     return(new Address
     {
         ReferenceId = AddressId.ToString(),
         Address1 = Address1,
         Address2 = Address2,
         City = City,
         State = State,
         ZipCode = ZipCode,
         CountryCode = CountryCode
     });
 }