private ServiceContract CreateServiceContractFromContract(int recordIndex, DateTime startDate, ContractType contract) { var serviceContract = new ServiceContract { ContractId = recordIndex, ContractTypeId = contract.ContractTypeId, ContractLengthInMonths = contract.PeriodInMonths, PaymentPeriod = _accountService.GetPaymentPeriod(contract.PaymentPeriodId), PaymentPeriodId = contract.PaymentPeriodId, Charge = contract.NormalTermAmount, ContractType = contract, }; serviceContract.SetStartDate(startDate); return(serviceContract); }