/// <summary>
 /// Updates an existing shipping method
 /// </summary>
 public static bool UpdateShippingMethod(int id, string title, decimal price)
 {
     ShippingMethodDetails record = new ShippingMethodDetails(id, DateTime.Now, "", title, price);
      bool ret = SiteProvider.Store.UpdateShippingMethod(record);
      BizObject.PurgeCacheItems("store_shippingmethod");
      return ret;
 }
 /// <summary>
 /// Returns a ShippingMethod object filled with the data taken from the input ShippingMethodDetails
 /// </summary>
 private static ShippingMethod GetShippingMethodFromShippingMethodDetails(ShippingMethodDetails record)
 {
     if (record == null)
     return null;
      else
      {
     return new ShippingMethod(record.ID, record.AddedDate, record.AddedBy, record.Title, record.Price);
      }
 }
 /// <summary>
 /// Creates a new shipping method
 /// </summary>
 public static int InsertShippingMethod(string title, decimal price)
 {
     ShippingMethodDetails record = new ShippingMethodDetails(0, DateTime.Now,
     BizObject.CurrentUserName, title, price);
      int ret = SiteProvider.Store.InsertShippingMethod(record);
      BizObject.PurgeCacheItems("store_shippingmethod");
      return ret;
 }
 public abstract int InsertShippingMethod(ShippingMethodDetails shippingMethod);
 public abstract bool UpdateShippingMethod(ShippingMethodDetails shippingMethod);
 public abstract bool UpdateShippingMethod(ShippingMethodDetails shippingMethod);
 public abstract int InsertShippingMethod(ShippingMethodDetails shippingMethod);