I'm currently refactoring a bloated MVC .NET Core app to a more simpler .NET Core app using Razor Pages and Mediatr.
In the MVC approach there's a BaseController that all controllers inherits from. The BaseController handles the Mediatr DI. How will I go about doing this in Razor Pages? Is it wise to create a BasePageModel class that handles the Mediatr DI, or should I just include the Mediatr DI in every PageModel I create?