A light weight pagination framework for .NET and .NET Core - now with additional MVC6 support!
Configure MVC to use PaginableCollections.
public void ConfigureServices(IServiceCollection services)
{
// important stuff...
services.AddMvc()
.UsePaginableHeaders(u => u.UseCondensed());
// important stuff...
}
Content-Type →application/json; charset=utf-8
Date →Thu, 20 Jul 2017 04:31:01 GMT
Server →Kestrel
Transfer-Encoding →chunked
X-Paginable →{"itemCountPerPage":20,"pageNumber":1,"totalItemCount":14,"totalPageCount":1}
Content-Type →application/json; charset=utf-8
Date →Thu, 20 Jul 2017 04:35:13 GMT
Server →Kestrel
Transfer-Encoding →chunked
X-Paginable-ItemCountPerPage →20
X-Paginable-PageNumber →1
X-Paginable-TotalItemCount →14
X-Paginable-TotalPageCount →1
You should install PaginableCollections.AspNetCore with NuGet:
Install-Package PaginableCollections.AspNetCore
This command will download and install PaginableCollections.AspNetCore. Let me know if you have questions!