public static Page <T> SinglePage <T>(this IQueryable <T> queryable, IPageInfo pageInfo) => queryable.TakePage(pageInfo.CreatePagination <T>()).ToList().AsPage(pageInfo);
public static IQueryable <T> TakePage <T>(this IQueryable <T> queryable, IPageInfo query) => queryable.TakePage(query.CreatePagination <T>());