コード例 #1
0
        public object GetClearBranchCartInvalidProducts(long shopBranchId)
        {
            long userId = CurrentUser != null ? CurrentUser.Id : 0;

            CartApplication.ClearInvalidShopBranchCart(userId, shopBranchId);
            return(Json(""));
        }
コード例 #2
0
        /// <summary>
        /// 清理门店购物车所有无效商品
        /// </summary>
        /// <param name="shopBranchId"></param>
        /// <returns></returns>
        public JsonResult <Result <int> > GetClearBranchCartInvalidProducts(long shopBranchId)
        {
            long userId = CurrentUser != null ? CurrentUser.Id : 0;

            CartApplication.ClearInvalidShopBranchCart(userId, shopBranchId);
            return(JsonResult <int>());
        }