Pagination in ASP.NET APIs — a practical guide to ASP.NET API pagination with clear examples you can reuse in real projects.
ASP & ASP.NET Tutorial Series (174/247). Prefer one article? Read the complete ASP.NET tutorial.
Short description
Return total counts when clients need them.
Pagination tip
var page = items.Skip((pageIndex - 1) * pageSize).Take(pageSize);