public ActionResult ListData(int page, int limit) { var count = CommunityService.GetAll(); var data = count.Skip((page - 1) * limit).Take(limit); return(Json(new AjaxResult <CommunityDTO> { code = 0, count = count.Count(), data = data })); }