public JsonResult GetList(int pageSize, int pageNumber) { Book.BLL.T_Base_Customer bll = new BLL.T_Base_Customer(); List <Book.Model.T_Base_Customer> list = bll.GetList(pageNumber, pageSize); int count = bll.GetCount(); return(Json(new { total = count, rows = list })); //return Json(list); }
public JsonResult GetList(int currentPage, String Name = "") { Book.BLL.T_Base_Customer bll = new BLL.T_Base_Customer(); //List<Book.Model.T_Base_Customer> lst = bll.GetAll(); List <Book.Model.T_Base_Customer> lst = bll.GetList(currentPage, PageSize, Name); ViewBag.Name = Name; int c = bll.GetCount(Name); return(Json(new { count = c, result = Json(lst) })); }