public void LastLoadedOrderPaidAndSent() { OrderDB db = new OrderDB(); Order2 lastOrder = SimpleRandomLoader.GetLastLoadedOrder(); Order2 paidWebOrder = db.GetNextPaidOrder(); paidWebOrder.OrderSent = true; paidWebOrder.Address = lastOrder.Address; paidWebOrder.Password = lastOrder.Password; db.SaveOrder(paidWebOrder); db.DeleteOrder(lastOrder.OrderNumber); waitingPaidOrder = db.GetNextPaidOrder(); }
public void DeleteOrder(int id) { OrderDB.DeleteOrder(id); }
public static int DeleteOrder(int[] orderIDs) { return(OrderDB.DeleteOrder(orderIDs)); }