Exemple #1
0
        }         // GetMonthlyRepayment

        public MonthlyRepaymentData GetMonthlyRepaymentData(int customerID, DateTime now)
        {
            string nowStr = now.ToString("d/MMM/yyyy H:mm:ss", CultureInfo.InvariantCulture);

            Log.Debug("Engine.GetMonthlyRepaymentData({0}, {1}) started...", customerID, nowStr);

            InferenceInputPackage inputPkg = Keeper.LoadInputData(customerID, Now, true);

            Log.Debug("Engine.GetMonthlyRepaymentData({0}, {1}) retrieved input package.", customerID, nowStr);

            return(new MonthlyRepaymentData {
                RequestedAmount = inputPkg.InferenceInput.RequestedAmount,
                RequestedTerm = inputPkg.InferenceInput.RequestedTerm,
                MonthlyRepayment = inputPkg.InferenceInput.MonthlyPayment ?? 0,
            });
        }         // GetMonthlyRepaymentData