public HttpResponseBase GetEventCondiUser() { string json = "{success:false,data:[]}"; try { ipuConditionMgr = new EventpromoUserConditionMgr(mySqlConnectionString); json = ipuConditionMgr.GetEventCondi(new EventPromoUserConditionQuery { }); } 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(json); this.Response.End(); return this.Response; }