示例#1
0
        public IEnumerable <DeptClass> PaginatedBlogs()
        {
            int start = (CurrentPage - 1) * ClassesPerPage;

            return(DeptClasses.OrderBy(b => b.CreatedOn).Skip(start).Take(ClassesPerPage));
        }
示例#2
0
 public int PageCount()
 {
     return(Convert.ToInt32(Math.Ceiling(DeptClasses.Count() / (double)ClassesPerPage)));
 }