Hi Folks,
I'm migrating the application from WebAPI 2 to MVC6. I have few methods which return the HTML to the view. When I tried migrating to MVC6, it happens to be JSON along with metadata. Even after providing the following code doesn't help.
Thanks in Advance :)
response.Content.Headers.ContentType=newMediaTypeHeaderValue("text/html");return response;