title: ASP.NET Core routing error
body: <p>I have a route like <code>http://localhost:63037/api/futuresMarginRuns/7/data</code> which is working however another controller API with route <code>http://localhost:63037/api/futuresMarginRuns/2018-07-11/data</code> is not working, even the breakpoint in the controller API is not hit.
  Here are the API signatures</p>
  
  <pre><code>    [HttpGet]
      [Route("/api/futuresMarginRuns/{id}/data")]
      public async Task&lt;IActionResult&gt; GetFuturesMarginRunDataAsync(long id)
      {
          var data = await _repository.GetAllAsync(id).ConfigureAwait(false);
          return Ok(data);
      }
  
      [HttpGet]
      [Route("/api/futuresMarginRuns/{runDate}/data")]
      public async Task&lt;IActionResult&gt; GetFuturesMarginRunDataByDateAsync(DateTime runDate)
      {
          var data = await _repository.GetAllAsync(runDate).ConfigureAwait(false);
          return Ok(data);
      }
  </code></pre>
  
  <p>In the first case I get json data but in the second one the breakpoint is not hit so looks like the route is not mapped to the API properly in which case I would expect an error, but i get empty <code>[]</code></p>
  
  <p>How can I the API to work?</p>
  
  <p>Thanks</p>