Esempio n. 1
0
        public ActionResult AddToCart(int id_bou, int amount)
        {
            var id = Session["idUser"];

            if (id != null)
            {
                JsonResult a = Json(product.AddToCart(Convert.ToInt32(id), id_bou, amount), JsonRequestBehavior.AllowGet);

                return(a);
            }
            return(Json(new { }, JsonRequestBehavior.AllowGet));
        }