I m looking for .net core 6 paging example anyone help me please
Needs help for .Net core 6
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
I m looking for .net core 6 paging example anyone help me please
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Prasad RaveendranRank #320 · 7.8K reputationPosted Apr 3, 2024, 8:47 PM EDT
I would appreciate if you could provide additional details
Tahir AnsariRank #366 · 6.8K reputationPosted Apr 4, 2024, 12:47 AM EDT
paging in ASP.NET Core 6 using Entity Framework Core.
[HttpGet] public IActionResult GetProducts(int pageNumber = 1, int pageSize = 10) { var products = _context.Products .Skip((pageNumber - 1) * pageSize) .Take(pageSize) .ToList(); return Ok(products); }