private static void ApplyPaging(SearchParameters searchParameters, SearchRequest request) { searchParameters.Skip = request.Skip < 0 ? 0 : request.Skip; searchParameters.Top = request.Take <0 || request.Take> MaximumTake ? DefaultTake : request.Take; }
private static bool PagedToFirstItem(SearchRequest request) { return(request.Skip <= 0 && request.Take >= 1); }