public List <NL_Loans> GetCustomerLoans(int customerID, int userID) { var stra = new GetCustomerLoans(customerID); stra.Context.CustomerID = customerID; stra.Context.UserID = userID; stra.Execute(); return(stra.Loans.ToList()); }
} // AddPayment public ListNewLoanActionResult GetCustomerLoans(int customerID, int userID = 1) { GetCustomerLoans s = new GetCustomerLoans(customerID); s.Context.CustomerID = customerID; s.Context.UserID = userID; var amd = ExecuteSync(out s, customerID, userID, customerID); return(new ListNewLoanActionResult { MetaData = amd, Value = s.Loans, Error = s.Error }); } // GetCustomerLoans
public void GetCustomerLoansTest() { GetCustomerLoans s = new GetCustomerLoans(371); s.Execute(); s.Loans.ForEach(l => m_oLog.Debug(l)); }