public void ChangeOrderStatus(int orderId, OrderStatus newStatus) { OrderDB orderDB = new OrderDB(); Order order = orderDB.GetById(orderId); order.StatusID = newStatus; order.Update(); }
/// <summary> /// TODO: change to boolean /// </summary> /// <param name="orderID"></param> public void DeleteOrderByID(int orderID) { OrderDB orderDB = new OrderDB(); Order order = orderDB.GetById(orderID); //Make a check for nulls order.Delete(); }