예제 #1
0
        /// <summary>
        /// 删除定时商品
        /// </summary>
        public ActionResult DelTimeProduct(int recordId = -1)
        {
            TimeProductInfo timeProductInfo = AdminProducts.GetTimeProductByRecordId(recordId);

            if (timeProductInfo == null)
            {
                return(PromptView("定时商品不存在"));
            }
            if (timeProductInfo.StoreId != WorkContext.StoreId)
            {
                return(PromptView("不能删除其它店铺的定时商品"));
            }

            AdminProducts.DeleteTimeProductByRecordId(recordId);
            AddStoreAdminLog("删除定时商品", "删除定时商品,记录ID为" + recordId);
            return(PromptView("定时商品修改成功"));
        }
예제 #2
0
 /// <summary>
 /// 删除定时商品
 /// </summary>
 public ActionResult DelTimeProduct(int recordId = -1)
 {
     AdminProducts.DeleteTimeProductByRecordId(recordId);
     AddMallAdminLog("删除定时商品", "删除定时商品,记录ID为" + recordId);
     return(PromptView("定时商品修改成功"));
 }