Example #1
0
 /// <summary>
 /// Adds the album's details to the database
 /// </summary>
 /// <param name="customerAlbum">CustomerAlbum object being added to the database</param>
 /// <returns>New unique identifier for the CustomerAlbum, generated by the database</returns>
 public static Int16 AddCustomerAlbum(Business.CustomerAlbum customerAlbum)
 {
     try
     {
         return((Int16)Control.ExecuteScalar("AddCustomerAlbum", customerAlbum.GetParametersForStoredProcedure(false)));
     }
     catch (System.Exception e)
     {
         throw new Exception.AddDbObjectException("Could not add customer album", e);
     }
 }
Example #2
0
 /// <summary>
 /// Updates the album's details in the database
 /// </summary>
 /// <param name="customerAlbum">CustomerAlbum object being updated in the database</param>
 public static void UpdateCustomerAlbum(Business.CustomerAlbum customerAlbum)
 {
     try
     {
         Control.ExecuteNonQuery("UpdateCustomerAlbum", customerAlbum.GetParametersForStoredProcedure(true));
     }
     catch (System.Exception e)
     {
         throw new Exception.UpdateDbObjectException("Could not update customer album", e);
     }
 }