Beispiel #1
0
        /// <summary>
        /// 删除商品
        /// </summary>
        public ActionResult DelProduct(int[] pidList)
        {
            if (!AdminProducts.IsStoreProductByPid(WorkContext.StoreId, pidList))
            {
                return(PromptView("不能删除其它店铺的商品"));
            }

            AdminProducts.DeleteProductById(pidList);
            AddStoreAdminLog("删除商品", "删除商品,商品ID为:" + CommonHelper.IntArrayToString(pidList));
            return(PromptView("商品删除成功"));
        }
Beispiel #2
0
 /// <summary>
 /// 删除商品
 /// </summary>
 public ActionResult DelProduct(int[] pidList)
 {
     AdminProducts.DeleteProductById(pidList);
     AddMallAdminLog("删除商品", "删除商品,商品ID为:" + CommonHelper.IntArrayToString(pidList));
     return(PromptView("商品删除成功"));
 }