Can Web API return HTML?

. Net Web API returns html content. But reading a file from local folder in Asp.net Core works little differently than earlier version of Asp.net, as we already learned in Asp.Net Core about middleware setup and how dependency injection pattern is used, So here we setup an environment variable using constructor.

For More Information Please Refer: https://www.webtrainingroom.com/webapi/return-html