Ejemplo n.º 1
0
        public static CustomerTransaction getCustomerAndTransactions(int?id)
        {
            BasicCreditDbContext db = new BasicCreditDbContext();
            CustomerTransaction  custTransactions = new CustomerTransaction();

            custTransactions.customer = getCustomer(id);

            var transactions = db.Transactions.Where(s => s.CustID == custTransactions.customer.Id);

            custTransactions.transactions = transactions.ToList();

            return(custTransactions);
        }
Ejemplo n.º 2
0
        public static CustomerTransaction getCustomerAndTransactions(int?id)
        {
            CustomerTransaction CustomerTransaction = BasicCredit.getCustomerAndTransactions(id);

            return(CustomerTransaction);
        }