title: Web API optional parameters from querystring returning request is missing body
body: <p>I'm attempting to build a route similar to this:</p>
  
  <p>/accounts/{accountId}/stuff/?stuffAfterDate=2015-04-19T12%3A30%3A00</p>
  
  <p>that you can also call as </p>
  
  <p>/accounts/{accountId}/stuff </p>
  
  <p>to return everything. So stuffAfterDate is a filter. </p>
  
  <p>My web API action looks like </p>
  
  <pre><code>    [HttpGet]
      [Route("accounts/{accountId}/stuff")]
      public IHttpActionResult GetStuffForAccount(int accountId, DateTime? stuffAfterDate = null)
  </code></pre>
  
  <p>But when I go to /accounts/1/stuff it returns "Request is missing body"</p>
  
  <p>Everything I've found on Stack Overflow or online just seems to indicate that all you need to do is make the parameter nullable with a default value of null, but that doesn't work. I've also tried creating a normal route table entry but I can't seem to get that to work either. I've also tried adding [FromUri] to the stuffAfterDate value. </p>
  
  <p>Any ideas what I'm doing wrong? </p>