public bool AddProductToBasket(int storeId, int productId, int amount) { return(TransactionService.AddProductToBasket(user, storeId, productId, amount)); }
public bool SetProductAmountInBasket(int storeId, int productId, int amount) { return(TransactionService.SetProductAmountInBasket(user, storeId, productId, amount)); }
public ShoppingCart GetShoppingCart(int storeId) { return(TransactionService.GetShoppingCart(user, storeId)); }
public string GetShoppingBasket() { return(JsonHandler.SerializeObject(TransactionService.GetShoppingBasket(user))); }
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); }