//bấm nút mua sẽ thêm vào được giỏ hàng
        public ActionResult AddCIFromListProduct(int proId, int catId, int page)
        {
            if (Session["cart"] == null)
            {
                Session["cart"] = new ClientCart();
            }
            var c = Session["cart"] as ClientCart;

            c = CSDLQLBH.InsertCartItem(c, proId);
            return(RedirectToAction("GetListByCategory", "Product", new { id = catId, page = page }));
        }
        //bấm nút mua sẽ thêm vào được giỏ hàng
        public ActionResult AddCIFromIndex(int proId)
        {
            if (Session["cart"] == null)
            {
                Session["cart"] = new ClientCart();
            }
            var c = Session["cart"] as ClientCart;

            c = CSDLQLBH.InsertCartItem(c, proId);
            return(RedirectToAction("Index", "Home"));
        }
        public ActionResult Add(int proId, int quantity)
        {
            if (Session["cart"] == null)
            {
                Session["cart"] = new ClientCart();
            }
            var c = Session["cart"] as ClientCart;

            c = CSDLQLBH.InsertCartItem(c, proId, quantity);
            return(RedirectToAction("Detail", "Product", new { id = proId }));
        }