/// <summary>
 /// Updates an existing order status
 /// </summary>
 public static bool UpdateOrderStatus(int id, string title)
 {
     OrderStatusDetails record = new OrderStatusDetails(id, DateTime.Now, "", title);
      bool ret = SiteProvider.Store.UpdateOrderStatus(record);
      BizObject.PurgeCacheItems("store_orderstatus");
      return ret;
 }
 /// <summary>
 /// Returns a OrderStatus object filled with the data taken from the input OrderStatusDetails
 /// </summary>
 private static OrderStatus GetOrderStatusFromOrderStatusDetails(OrderStatusDetails record)
 {
     if (record == null)
     return null;
      else
      {
     return new OrderStatus(record.ID, record.AddedDate, record.AddedBy, record.Title);
      }
 }
 /// <summary>
 /// Creates a new order status
 /// </summary>
 public static int InsertOrderStatus(string title)
 {
     OrderStatusDetails record = new OrderStatusDetails(0, DateTime.Now,
     BizObject.CurrentUserName, title);
      int ret = SiteProvider.Store.InsertOrderStatus(record);
      BizObject.PurgeCacheItems("store_orderstatus");
      return ret;
 }
 public abstract int InsertOrderStatus(OrderStatusDetails orderStatus);
 public abstract bool UpdateOrderStatus(OrderStatusDetails orderStatus);
 public abstract bool UpdateOrderStatus(OrderStatusDetails orderStatus);
 public abstract int InsertOrderStatus(OrderStatusDetails orderStatus);