public Loan Repay() { var newSettings = (RepaymentSettings) Settings.Clone(); var script = RunScript(); script.Main(newSettings); Settings = newSettings; return Settings.Loan; }
public Loan Repay() { var newSettings = (RepaymentSettings)Settings.Clone(); var script = RunScript(); script.Main(newSettings); Settings = newSettings; return(Settings.Loan); }
public Loan Repay() { var newSettings = (RepaymentSettings)Settings.Clone(); var script = RunScript(newSettings.ScriptName); if (newSettings.DateChanged) script.GetInitAmounts(newSettings); if (newSettings.AmountChanged) script.GetAmounts(newSettings); script.Repay(newSettings); Settings = newSettings; return Settings.Loan; }
public Loan Repay() { var newSettings = (RepaymentSettings)Settings.Clone(); var script = RunScript(newSettings.ScriptName); if (newSettings.DateChanged) { script.GetInitAmounts(newSettings); } if (newSettings.AmountChanged) { script.GetAmounts(newSettings); } script.Repay(newSettings); Settings = newSettings; return(Settings.Loan); }
public RepaymentService() { Settings = new RepaymentSettings(); }