Esempio n. 1
0
 /// <summary>
 /// The copyExists method receives a DVDCopy object and checks whether the copy exists
 /// in both of the lists. It matches the barcodes together and if it finds a match it will return true, otherwise false;
 /// </summary>
 /// <param name="copy">The DVDCopy that you want to check if it exists</param>
 /// <returns>A boolean indicating whether it was found</returns>
 public Boolean copyExists(DVDCopy copy)
 {
     return(DataTransactionItem.Fetch(this.transactionID, copy.copyID) != null);
 }
Esempio n. 2
0
 public void AddItem(DVDCopy copy, TransactionItem.TransactionType type)
 {
     DataTransactionItem.Add(new TransactionItem(this.transactionID, copy.copyID, type));
 }
Esempio n. 3
0
 /// <summary>
 /// The UpdateCopy method is a static method, which is used to interact with the data layer.
 /// It will update the record relating to the copy object received.
 /// </summary>
 /// <param name="copy">The copy object.</param>
 /// <returns></returns>
 public static Boolean UpdateCopy(DVDCopy copy)
 {
     return(DataDVDCopy.Update(copy));
 }