title: Is there any difference between the Ok() method new ObjectResult()?
body: <p>Scenario: implementing a standard REST API / GET method on a .net core controller.</p>
  <p>The <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.okobjectresult" rel="nofollow noreferrer">documentation</a> states that OkObjectResult is an ObjectResult with status 200. This is available through the <code>Ok(myResult)</code> method inherited from ControllerBase. I assume this is a convenience method.</p>
  <p>However, the <a href="https://docs.asp.net/en/latest/tutorials/first-web-api.html" rel="nofollow noreferrer">tutorial</a> is not using this approach - it instead returns <code>new ObjectResult(myResult)</code> which will default to status 200.</p>
  <p>Is there any difference between these two approaches?</p>