Beispiel #1
0
    public static ShoppingCart RetrieveShoppingCart()
    {
        ArrayList    bookOrders = BookOrderListDataAccess.RetrieveAllBookOrders();
        ShoppingCart cart       = new ShoppingCart(bookOrders);

        return(cart);
    }
Beispiel #2
0
 public void AddBookOrder(BookOrder order)
 {
     bookOrders.Add(order);
     BookOrderListDataAccess.SaveBookOrder(order);
 }
Beispiel #3
0
 public void EmptyShoppingCart()
 {
     BookOrderListDataAccess.ClearBookOrderList();
     bookOrders.Clear();
 }