Exemple #1
0
        public void Delete(int id)
        {
            IGetTransactions   readObject       = new ReadTransactions();
            List <Transaction> tempTransactions = new List <Transaction>();

            tempTransactions = readObject.GetAllTransactions();
            IDeleteTransaction deleteObject    = new SaveTransaction();
            Transaction        tempTransaction = new Transaction();

            foreach (Transaction t in tempTransactions)
            {
                if (id == t.TransactionID)
                {
                    tempTransaction = t;
                }
            }
            deleteObject.DeleteTransaction(tempTransaction);
        }
Exemple #2
0
        public List <Transaction> GetUnreturnedEmployeeTransactions(int empid)
        {
            ReadTransactions readObject = new ReadTransactions();

            return(readObject.GetEmployeeTransactionsToReturn(empid));
        }
Exemple #3
0
        public Transaction Get(int id)
        {
            IGetTransaction readObject = new ReadTransactions();

            return(readObject.GetTransaction(id));
        }
Exemple #4
0
        public List <Transaction> Get()
        {
            IGetTransactions readObject = new ReadTransactions();

            return(readObject.GetAllTransactions());
        }