Advantage of using IActionResult as result type in Actions
<p>What's the advantage or recommendation on using <code>IActionResult</code> as the return type of a WebApi controller instead of the actual type you want to return?</p>

<p>Most of the examples I've seen return <code>IActionResult</code>, but when I build my first site I exclusively use View Model classes as my return types.... now I feel like I did it all wrong!</p>