Example #1
0
        /// <summary>
        /// 改变商品精品状态
        /// </summary>
        public ActionResult ChangeProductIsBest(int[] pidList, int state = 0)
        {
            bool result = AdminProducts.ChangeProductIsBest(pidList, state);

            if (result)
            {
                AddMallAdminLog("修改商品精品状态", "修改商品精品状态,商品ID和状态为:" + CommonHelper.IntArrayToString(pidList) + "_" + state);
                return(Content("1"));
            }
            else
            {
                return(Content("0"));
            }
        }
Example #2
0
        /// <summary>
        /// 改变商品精品状态
        /// </summary>
        public ActionResult ChangeProductIsBest(int[] pidList, int state = 0)
        {
            if (!AdminProducts.IsStoreProductByPid(WorkContext.StoreId, pidList))
            {
                return(Content("0"));
            }

            bool result = AdminProducts.ChangeProductIsBest(pidList, state);

            if (result)
            {
                AddStoreAdminLog("修改商品精品状态", "修改商品精品状态,商品ID和状态为:" + pidList + "_" + state);
                return(Content("1"));
            }
            else
            {
                return(Content("0"));
            }
        }