Menu

Server side pagination in ASP.NET controler that supports any entity

For one of the Angular JS applications I am working on needed pagination on server side (ASP.NET Core). So thought about creating it, so it supports any entity as it a very common scenario on server side.

Create a class PaginatedResult.cs below is the code for it.

Below is the controller code that utilising the pagination.

That is all, let me know what you think about it.

Leave a comment