public IActionResult Infordisplay(int Pageindex, int Pagesize) { List <Informationsheet> list = new List <Informationsheet>(); List <Informationsheet> _list = new List <Informationsheet>(); try { list = bll.Infordisplay(); _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 })); }