title: Calling controller method from Razor page OnGet
body: <p>What is the best practice of calling a controller method decorated with for example [HttpGet] or [HttpPost] from a Razor page OnGet in an ASP.NET Core application?</p>