示例#1
0
        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);
 }
示例#3
0
 public static int DeleteOrder(int[] orderIDs)
 {
     return(OrderDB.DeleteOrder(orderIDs));
 }