Exemplo n.º 1
0
        public string AddCart(string account, string id_p, string quan)
        {
            Dictionary <string, string> res = new Dictionary <string, string>();
            var productModel = new ProductModel();

            if (productModel.AddCart(account, id_p, quan))
            {
                res.Add("status", "1");
            }
            else
            {
                res.Add("status", "0");
            }
            return(JsonConvert.SerializeObject(res));
        }
Exemplo n.º 2
0
 public void AddItem(float productID)
 {
     var addcart = new ProductModel();
     addcart.AddCart(productID , 3 , 4);
 }