| 3 | namespace Common; |
| 4 | |
| 5 | public record PaginationRequest |
| 6 | { |
| 7 | public int? Page { get; init; } |
| 8 | public int? PageSize { get; init; } |
| 9 | |
| 10 | public int SafePage => Page.GetValueOrDefault(1); |
| 11 | public int CappedPageSize => Math.Min(PageSize ?? 5, 50); |
| 12 | } |
| 13 | |
| 14 | public record PaginationResult<T> |
| 15 | { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…