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(); }
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()); }