Example #1
0
        public HttpResponseBase DeleteProductFromCategorySet()
        {
            string bids = Request.Params["brandids"];
            string cids = Request.Params["categoryid"];
            string pids = Request.Params["productids"];
            string resultStr = "{success:false}";
            try
            {
                ProductCategorySetMgr _categorySetMgr = new ProductCategorySetMgr(connectionString);
                if (_categorySetMgr.DeleteProductByModelArry(bids, cids, pids))
                {

                    resultStr = "{success:true}";
                }

            }
            catch (Exception ex)
            {
                Log4NetCustom.LogMessage logMessage = new Log4NetCustom.LogMessage();
                logMessage.Content = string.Format("TargetSite:{0},Source:{1},Message:{2}", ex.TargetSite.Name, ex.Source, ex.Message);
                logMessage.MethodName = System.Reflection.MethodBase.GetCurrentMethod().Name;
                log.Error(logMessage);
            }


            this.Response.Clear();
            this.Response.Write(resultStr);
            this.Response.End();
            return this.Response;
        }