How to make the View returned by the controller and generated by Razor get the data from the api i want to keep the razor engine view and use the api
the original mvc cont
Read here on how to use the Razor view engine inside your Web API controller. The interesting part is using the RazorEngine NuGet package to do the heavy lifting.