public HttpResponseBase GetBrandStore() { string json = string.Empty; try { BrandLogoSort query = new BrandLogoSort(); if (!string.IsNullOrEmpty(Request.Params["category_id"])) { query.category_id = Convert.ToUInt32(Request.Params["category_id"]); _BrandLSMgr = new BrandLogoSortMgr(mySqlConnectionString); DataTable _dt = _BrandLSMgr.BrandStore(query); json = "{success:true,data:" + JsonConvert.SerializeObject(_dt, Formatting.Indented) + "}"; } } 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; }