private string getPayList(HttpContext context) { Json jsonResult = new Json(); string nickname = context.Request["nickname"]; string limit = context.Request["limit"]; string page = context.Request["page"]; DataTable dt = ms.getPayList(nickname, limit, page); int count = ms.getPayListNum(nickname); if (dt == null) { jsonResult.Success = false; jsonResult.count = count; jsonResult.code = 400; } else { jsonResult.Success = true; jsonResult.data = dt; jsonResult.count = count; jsonResult.code = 0; } string strJson = JsonConvert.SerializeObject(jsonResult); return(strJson); }