public IActionResult Communitydisplay(int Pageindex, int Pagesize, int Sheng, int Shi, int Qu) { List <Community> list = new List <Community>(); List <Community> _list = new List <Community>(); try { list = bll.Communitydisplay(Sheng, Shi, Qu); _list = list.Skip((Pageindex - 1) * Pagesize).Take(Pagesize).ToList(); } catch (Exception ex) { log.Error(ex.Message); throw; } return(Ok(new { data = _list, count = list.Count })); }