Run Razor view from API

.NET Core Razor uses a completely different implementation that’s built on top of MVC Razor, see: