I have an ApiController that serves XML/JSON, but I would like one of my actions to return pure HTML. I tried the below but it still return XML/JSON.
public
We must strive not to return html but pure data from our API's and format data accordingly in the UI, but maybe you can use:
return this.Request.CreateResponse(HttpStatusCode.OK, new{content=YourStringContent})
it works for me