} // Execute private ActionResult HandleOnePendingInvestor(SafeReader sr, bool bRowSetStart) { int customerId = sr["CustomerID"]; long cashRequestID = sr["CashRequestID"]; Log.Info("Searching investor for customer {0} cash request {1}", customerId, cashRequestID); var aiar = new LoadApplicationInfo( customerId, cashRequestID, this.now ); aiar.Execute(); ApplyManualDecision applyManualDecision = new ApplyManualDecision(new DecisionModel { customerID = customerId, status = EZBob.DatabaseLib.Model.Database.CreditResultStatus.Approved, underwriterID = 1, attemptID = Guid.NewGuid().ToString("N"), cashRequestID = cashRequestID, cashRequestRowVersion = aiar.Result.CashRequestRowVersion, }); applyManualDecision.Execute(); return(ActionResult.Continue); } //HandleOnePendingInvestor
} //HandleOneExpired private void RejectCustomer(int customerID, long cashRequestID) { var aiar = new LoadApplicationInfo(customerID, cashRequestID, DateTime.UtcNow); aiar.Execute(); var stra = new ApplyManualDecision(new DecisionModel { customerID = customerID, status = EZBob.DatabaseLib.Model.Database.CreditResultStatus.Rejected, underwriterID = 1, attemptID = Guid.NewGuid().ToString("N"), cashRequestID = cashRequestID, cashRequestRowVersion = aiar.Result.CashRequestRowVersion, reason = "Open platform offer expired", }); stra.Execute(); } //RejectCustomer