Exemplo n.º 1
0
 public static OfferDto MapOfferToOfferDto(Offer offer)
 {
     return(new OfferDto()
     {
         Covers = offer.Covers.ToDictionary(x => x.CoverCode, x => x.Price),
         OfferNumber = offer.OfferNumber,
         OfferStatus = offer.OfferStatus,
         PolicyFrom = offer.PolicyFrom,
         PolicyHolder = PolicyHolderMapper.MapPolicyHolderToPersonDto(offer.PolicyHolder),
         PolicyTo = offer.PolicyTo,
         ProductCode = offer.ProductCode,
         TotalPrice = offer.TotalPrice,
         ValidTo = offer.ValidTo
     });
 }
Exemplo n.º 2
0
 public static PolicyVersionDto MapPolicyVersionToPolicyVersionDto(PolicyVersion policyVersion)
 {
     return(new PolicyVersionDto()
     {
         PolicyNumber = policyVersion.PolicyNumber,
         PolicyHolder = PolicyHolderMapper.MapPolicyHolderToPersonDto(policyVersion.PolicyHolder),
         PolicyFrom = policyVersion.PolicyFrom,
         PolicyStatus = policyVersion.PolicyStatus,
         PolicyTo = policyVersion.PolicyTo,
         ProductCode = policyVersion.ProductCode,
         TotalPremium = policyVersion.TotalPremium,
         VersionFrom = policyVersion.VersionFrom,
         VersionNumber = policyVersion.VersionNumber,
         VersionTo = policyVersion.VersionTo
     });
 }