public IEnumerable <DeptClass> PaginatedBlogs() { int start = (CurrentPage - 1) * ClassesPerPage; return(DeptClasses.OrderBy(b => b.CreatedOn).Skip(start).Take(ClassesPerPage)); }
public int PageCount() { return(Convert.ToInt32(Math.Ceiling(DeptClasses.Count() / (double)ClassesPerPage))); }