public HttpResponseBase SaveTemp() { string json = string.Empty; string product_id = string.Empty; BLL.gigade.Model.Vendor vendorModel = (BLL.gigade.Model.Vendor)Session["vendor"]; try { int writerId = (int)vendorModel.vendor_id; if (!string.IsNullOrEmpty(Request.Form["ProductId"])) { product_id = Request.Form["ProductId"]; } ProductTemp proTemp = new ProductTemp(); proTemp.Writer_Id = writerId; proTemp.Combo_Type = COMBO_TYPE; proTemp.Product_Id = product_id; _productTempMgr = new ProductTempMgr(connectionString); if (_productTempMgr.SaveTemp(proTemp)) { json = "{success:true,msg:'" + Resources.VendorProduct.SAVE_SUCCESS + "'}"; } else { json = "{success:false,msg:'" + Resources.VendorProduct.SAVE_FAIL + "'}"; } } 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); json = "{success:false,msg:'" + Resources.VendorProduct.SAVE_FAIL + "'}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }