コード例 #1
0
        public IActionResult Informationsheetdisplay(int Pageindex, int Pagesize)
        {
            List <Informationsheet> list  = new List <Informationsheet>();
            List <Informationsheet> _list = new List <Informationsheet>();

            try
            {
                list  = bll.Informationsheetdisplay();
                _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 }));
        }