I have ASP.NET 5 Web Api and need to do the following task:
Add endpoint, which get cshtml page and return generated html, so it should do the same what is does razor view engine.
What is better way to do this?
I added these views in this web api project and I think I can just make httpget request to view to get html response. Is it correct way?
So actually I need to covert ViewResult to ContentResult.
6