public ActionResult SN() { string TabName = WebUtil.GetFormValue<string>("TabName", string.Empty); int PageIndex = WebUtil.GetFormValue<int>("PageIndex", 1); int PageSize = WebUtil.GetFormValue<int>("PageSize", 10); SequenceProvider provider = new SequenceProvider(); SequenceEntity entity = new SequenceEntity(); if (!TabName.IsEmpty()) { entity.Where("TabName", ECondition.Like, "%" + TabName + "%"); } PageInfo pageInfo = new PageInfo() { PageIndex = PageIndex, PageSize = PageSize }; List<SequenceEntity> listResult = provider.GetList(entity, ref pageInfo); listResult = listResult.IsNull() ? new List<SequenceEntity>() : listResult; string json = JsonConvert.SerializeObject(listResult); this.ReturnJson.AddProperty("Data", json); this.ReturnJson.AddProperty("RowCount", pageInfo.RowCount); return Content(this.ReturnJson.ToString()); }