Beispiel #1
0
        public JsonResult EditBranchProductToCart(string skuId, int count, long shopBranchId)
        {
            BranchCartHelper branchCartHelper = new BranchCartHelper();
            long             userId           = CurrentUser != null ? CurrentUser.Id : 0;

            branchCartHelper.UpdateCartItem(skuId, count, userId, shopBranchId);
            return(Json(new { success = true }));
        }
        public JsonResult EditBranchProductToCart(string skuId, int count, long shopBranchId)
        {
            BranchCartHelper helper   = new BranchCartHelper();
            long             memberId = (base.CurrentUser != null) ? base.CurrentUser.Id : 0L;

            helper.UpdateCartItem(skuId, count, memberId, shopBranchId);
            return(base.Json(new { success = true }));
        }