Example #1
0
        private ActionResult ProcessUpdateCartNum()
        {
            #region 购物车
            VWShoppingCartInfo shoppingCart = SessionUtil.GetCartSession();
            #endregion

            string callback        = QueryString.SafeQ("callback");//jsonp回调函数
            int    productdetailid = QueryString.IntSafeQ("prodetailid");
            int    num             = QueryString.IntSafeQ("Num");

            if (productdetailid == 0)
            {
                return(Content(callback + "({\"Status\":\"请选择需要删除的商品\"});"));
            }
            else
            {
                ShoppingCartProcessor.UpdateCarItemQty(shoppingCart, productdetailid, num);
                return(Content(callback + "({\"Status\":\"OK\"});"));
            }
        }