Exemplo n.º 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);
        }
 public static async Task <IPagedList <T> > ToPagedListAsync <T>(this IQueryable <T> superset, Int32 pageNumber, Int32 pageSize)
 {
     return(await PagedListExtended <T> .Create(superset, pageNumber, pageSize));
 }