예제 #1
0
 public void Update(BaseTransaction updatedTransaction)
 {
     BaseTransaction matches = transactionList.Where(t => t.TransactionID == updatedTransaction.TransactionID).First();
     if (matches != null)
     {
         transactionList.Remove(matches);
         transactionList.Add(updatedTransaction);
     }
 }
예제 #2
0
 public void Insert(BaseTransaction newTransaction)
 {
     transactionList.Add(newTransaction);
 }