public HttpResponseBase GetDspDeliverStoreList() { List<Parametersrc> stores = new List<Parametersrc>(); string json = string.Empty; try { Parametersrc p = new Parametersrc(); p.parameterName = "不分"; p.ParameterCode = "0"; IParametersrcImplMgr IPImplMgr = new ParameterMgr(connectionString); stores = IPImplMgr.ReturnParametersrcList(); if (string.IsNullOrEmpty(Request.Params["type"])) { stores.Insert(0, p); } json = "{success:true,data:" + JsonConvert.SerializeObject(stores) + "}"; } 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:true,totalCount:0,data:[]}"; } this.Response.Clear(); this.Response.Write(json); this.Response.End(); return this.Response; }