public HttpResponseBase ProductCopy() { string json = string.Empty; try { if (!string.IsNullOrEmpty(Request.Form["Product_Id"]) && !string.IsNullOrEmpty(Request.Form["Combination"])) { string product_id = Request.Form["Product_Id"]; int writer_id = (Session["caller"] as Caller).user_id; int combo_type = Convert.ToInt32(Request.Form["Combination"]); combo_type = (combo_type == 0 || combo_type == 1) ? 1 : 2; bool result = false; _productTempMgr = new ProductTempMgr(connectionString); result = _productTempMgr.CopyProduct(writer_id, combo_type, product_id); json = "{success:" + result.ToString().ToLower() + "}"; } } 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}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }