Class PaginationResponse<T>
Represents a generic response wrapper for paginated data, typically used to return a subset of items along with associated pagination metadata.
public class PaginationResponse<T>
Type Parameters
TThe type of the items contained in the paginated response.
- Inheritance
-
PaginationResponse<T>
- Inherited Members
- Extension Methods
Constructors
PaginationResponse(List<T>, int, int, long)
public PaginationResponse(List<T> data, int pageNumber, int pageSize, long totalRecords)
Parameters
Properties
Data
public List<T> Data { get; set; }
Property Value
- List<T>
PageNumber
public int PageNumber { get; set; }
Property Value
PageSize
public int PageSize { get; set; }
Property Value
TotalPages
public long TotalPages { get; set; }
Property Value
TotalRecords
public long TotalRecords { get; set; }