public string GetAppModelJson(HttpContext context) { CouponsSearch couponsSearch = new CouponsSearch { CouponName = ((context.Request.Form["Name"] == null) ? "" : context.Request.Form["Name"].ToNullString()), PageIndex = 1, IsValid = true, ObtainWay = 0 }; couponsSearch.PageSize = 1000; DataTable noPageCouponInfos = CouponHelper.GetNoPageCouponInfos(couponsSearch); int pageCount = 1; if (noPageCouponInfos != null) { string str = "{\"status\":1,"; str = str + this.GetCouponsListJson(noPageCouponInfos, context) + ","; str = str + "\"page\":\"" + this.GetPageHtml(pageCount, context) + "\""; return(str + "}"); } return("{\"status\":1,\"list\":[],\"page\":\"\"}"); }