4using Microsoft.AspNetCore.Mvc;
17 public IOrderedQueryable<TModel>
Results {
get; }
30 Results = results ??
throw new ArgumentNullException(nameof(results));
39 EarlyOut = earlyOut ??
throw new ArgumentNullException(nameof(earlyOut));
Helper for returning paginated models.
PaginatableResult(IOrderedQueryable< TModel > results)
Initializes a new instance of the PaginatableResult<TModel> class.
PaginatableResult(IActionResult earlyOut)
Initializes a new instance of the PaginatableResult<TModel> class.
IActionResult EarlyOut
An IActionResult to return immediately.
IOrderedQueryable< TModel > Results
The IOrderedQueryable<T> TModel results.