public static Task <DataSourceResult> ToDataSourcePageResultAsync <TModel, TResult>(this IEnumerable <TModel> queryable, DataSourceRequest request, Func <TModel, TResult> selector) { request = request.ToConvertDataSourceRequest <TModel>(); return(queryable.ToDataSourceResultAsync <TModel, TResult>(request, selector)); }