public HttpResponseBase SaveBLS() { string json = string.Empty; BrandLogoSort query = new BrandLogoSort(); try { _BrandLSMgr = new BrandLogoSortMgr(mySqlConnectionString); if (!string.IsNullOrEmpty(Request.Params["blo_id"])) { query.blo_id = Convert.ToInt32(Request.Params["blo_id"]); } if (!string.IsNullOrEmpty(Request.Params["category_id"])) { query.category_id = Convert.ToUInt32(Request.Params["category_id"]); } if (!string.IsNullOrEmpty(Request.Params["brand_id"])) { query.brand_id = Convert.ToUInt32(Request.Params["brand_id"]); } if (!string.IsNullOrEmpty(Request.Params["old_brand_id"])) { query.old_brand_id = Convert.ToInt32(Request.Params["old_brand_id"]); } if (!string.IsNullOrEmpty(Request.Params["blo_sort"])) { query.blo_sort = Convert.ToInt32(Request.Params["blo_sort"]); } query.blo_kuser = Convert.ToUInt32((Session["caller"] as Caller).user_id); query.blo_muser = query.blo_kuser; json = _BrandLSMgr.SaveBLS(query); } 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; }