I very rarely implement an infinite scroll listing page due to the potential impact on SEO and UX.
However, when I do make an infinite scroll page, it will be driven through JavaScript making API calls to a web API controller.
The JavaScript code just needs to be make another API call with an incremented page number parameter when nearing the end of the current listing being displayed, and then append the results to the bottom.