/// <summary> /// The Save method adds the Customer (this) object to the internal data structure. /// </summary> public void Save() { if (this.dvdID > 0) { DataDVD.Update(this); } else { this.dvdID = DataDVD.Add(this); } }
/// <summary> /// The static Add method receives a DVD object /// and adds it to the internal data structure in the DataLayer. /// </summary> /// <param name="dvd">The DVD that you want added to the data structure</param> public static void Add(DVD dvd) { DataDVD.Add(dvd); }