internal static TSource Max <TSource>(ISpListItemsProvider listItemsProvider, QueryModel queryModel) { return(listItemsProvider.Fetch <TSource>(queryModel) .Max()); }
internal static IEnumerable <T> Fetch <T>(ISpListItemsProvider listItemsProvider, QueryModel queryModel) { return(listItemsProvider.Fetch <T>(queryModel)); }
internal static TResult Max <TSource, TResult>(ISpListItemsProvider listItemsProvider, QueryModel queryModel, Func <TSource, TResult> selector) { return(listItemsProvider.Fetch <TSource>(queryModel) .Max(selector)); }
internal static IEnumerable <TResult> Select <TSource, TResult>(ISpListItemsProvider listItemsProvider, QueryModel queryModel, Func <TSource, TResult> selector) { return(listItemsProvider.Fetch <TSource>(queryModel) .Select(selector)); }