예제 #1
0
 public Boolean AddCopy(string barcode, DVDCopy.Status status)
 {
     return(DataDVDCopy.Add(new DVDCopy(this.dvdID, barcode, status)));
 }
예제 #2
0
 /// <summary>
 /// The RemoveCopy method is a static method, which is used to interact with the data layer.
 /// It will remove a copy relating to the received ID.
 /// </summary>
 /// <param name="id">The Copy primary key.</param>
 /// <returns>A boolean indicating success.</returns>
 public static Boolean RemoveCopy(int id)
 {
     return(DataDVDCopy.Remove(id));
 }
예제 #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));
 }
예제 #4
0
 /// <summary>
 /// The FetchCopy method is a static method, which is used to interact with the data layer.
 /// It will return the copy instance based on the received ID.
 /// </summary>
 /// <param name="id">The Copy primary key.</param>
 /// <returns>The DVDCopy instance</returns>
 public static DVDCopy FetchCopy(int id)
 {
     return(DataDVDCopy.Fetch(id));
 }