public InsuranceInfo Map(InsuranceEmployment insuranceEmployment)
 {
     return Mapper<InsuranceEmployment, InsuranceInfo>.Map(insuranceEmployment)
                                                             .With(ie => ie.EmploymentNumber, (insuranceInfo, employmentNumber) => insuranceInfo.MembershipNo = employmentNumber)
                                                             .With(imf => imf.TaxNumber, (insuranceInfo, taxNumber) => insuranceInfo.TaxNumber = taxNumber)
                                                          .Exec();
 }
Esempio n. 2
0
 public InsuranceInfo Map(InsuranceEmployment insuranceEmployment)
 {
     return(Mapper <InsuranceEmployment, InsuranceInfo> .Map(insuranceEmployment)
            .With(ie => ie.EmploymentNumber, (insuranceInfo, employmentNumber) => insuranceInfo.MembershipNo = employmentNumber)
            .With(imf => imf.TaxNumber, (insuranceInfo, taxNumber) => insuranceInfo.TaxNumber = taxNumber)
            .Exec());
 }