Пример #1
0
 public bool AddProductToBasket(int storeId, int productId, int amount)
 {
     return(TransactionService.AddProductToBasket(user, storeId, productId, amount));
 }
Пример #2
0
 public bool SetProductAmountInBasket(int storeId, int productId, int amount)
 {
     return(TransactionService.SetProductAmountInBasket(user, storeId, productId, amount));
 }
Пример #3
0
 public ShoppingCart GetShoppingCart(int storeId)
 {
     return(TransactionService.GetShoppingCart(user, storeId));
 }
Пример #4
0
 public string GetShoppingBasket()
 {
     return(JsonHandler.SerializeObject(TransactionService.GetShoppingBasket(user)));
 }
Пример #5
0
        public async Task <string> BuyShoppingBasket(string cardNumber, int month, int year, string holder, int ccv, int id, string name, string address, string city, string country, string zip)
        {
            Transaction ans = await TransactionService.BuyShoppingBasket(user, cardNumber, month, year, holder, ccv, id, name, address, city, country, zip);

            return(ans.finalPurchaseInfo);
        }