Beispiel #1
0
        public static async Task <IPagedList <T> > Create(IQueryable <T> superset, int pageNumber, int pageSize)
        {
            var list = new PagedListExtended <T>();
            await list.Init(superset, pageNumber, pageSize);

            return(list);
        }
Beispiel #2
0
 public static async Task <IPagedList <T> > ToPagedListAsync <T>(this IQueryable <T> superset, int pageNumber, int pageSize)
 {
     return(await PagedListExtended <T> .Create(superset, pageNumber, pageSize));
 }