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
Just return Ok(value) won't work, it will be treated as IEnumerable.
return Ok(value)
IEnumerable
Instead use return Ok(new { Value = value }) or simillar.
return Ok(new { Value = value })