public IActionResult Paging(int pageSize, int pageNow)
        {
            var qry = context.Set <AttendanceRollCall>().
                      OrderBy(d => d.Id).Skip((pageNow - 1) * pageSize).Take(pageSize).ToList();


            return(Ok(qry));
        }
Example #2
0
        public IActionResult Paging(int pageSize, int pageNow)
        {
            var qry = context.Set <Student>().
                      OrderBy(d => d.StudentId).Skip((pageNow - 1) * pageSize).Take(pageSize).ToList();


            return(Ok(qry));
        }
        public IActionResult Paging(int pageSize, int pageNow)
        {
            var qry = context.Set <ProfileTeacher>().OrderBy(d => d.ProfileId).Skip((pageNow - 1) * pageSize).Take(pageSize).ToList();

            return(Ok(qry));
        }