title: Why should I return ActionResult instead of object?
body: <p>Assuming that I have application .NET Core 2.1 Web API + Angular 7</p>
  <p>Why should I always returns <code>ActionResult</code>?
  Is there any difference between this:</p>
  <pre><code>public ActionResult&lt;MyDTO&gt; GetData(){
      return new MyDTO();
  }
  </code></pre>
  <p>and that:</p>
  <pre><code>public MyDTO GetData(){
      return new MyDTO();
  }
  </code></pre>
  <p>In both cases I'll receive object on UI, and both returns code 200. So is just good practice to using ActionResult, or what?</p>