Exemple #1
0
 public bool RemoveProductFromCart(string userName, string storeName, string productBarcode, int amount)
 {
     return(CartLogic.RemoveProductFromBasket(userName, storeName, productBarcode, amount));
 }
Exemple #2
0
        // 2.7) Add a product to a shopping basket

        public bool AddProductToBasket(string userName, string storeName, string productCode, int amount)
        {
            return(CartLogic.AddProductToBasket(userName, storeName, productCode, amount));
        }
Exemple #3
0
 public List <string> GetBasketProducts(string userName, string storeName)
 {
     return(CartLogic.GetBasketProducts(userName, storeName));
 }
Exemple #4
0
 public bool UpdateCart(string userName, string storeName, string productBarcode, int newAmount)
 {
     return(CartLogic.UpdateCart(userName, storeName, productBarcode, newAmount));
 }
Exemple #5
0
 public bool Purchase(string userName, string creditCard)
 {
     return(CartLogic.Purchase(userName, creditCard));
 }
Exemple #6
0
 public Dictionary <string, int> GetCartByStore(string userName, string storeName)
 {
     return(CartLogic.GetCartByStore(userName, storeName));
 }
Exemple #7
0
 public List <string> GetUserBaskets(string userName)
 {
     return(CartLogic.GetUserBaskets(userName));
 }