Exemplo n.º 1
0
        internal byte[] HandleAddProductToCart(string json)
        {
            AddProductToCartRequest res = JsonConvert.DeserializeObject <AddProductToCartRequest>(json);
            Tuple <bool, string>    ans = purchService.AddProductToShoppingCart(res.User, res.Store, res.Product, res.Amount);
            string jsonAns = Seralize(new SuccessFailResponse(ans.Item1, ans.Item2));

            return(security.Encrypt(jsonAns));
        }
Exemplo n.º 2
0
 public override Tuple <bool, string> AddProductToBasket(string userID, int storeID, int productID, int amount)
 {
     return(purchService.AddProductToShoppingCart(userID, storeID, productID, amount));
 }