title: Why is my Web API method with double args not getting called?
body: <p>I have a Web API method that takes two double args:</p>
  
  <p>Repository interface:</p>
  
  <pre><code>public interface IInventoryItemRepository
  {
  . . .
      IEnumerable&lt;InventoryItem&gt; GetDepartmentRange(double deptBegin, double deptEnd);
  . . .
  }
  </code></pre>
  
  <p>Repository:</p>
  
  <pre><code>public IEnumerable&lt;InventoryItem&gt; GetDepartmentRange(double deptBegin, double deptEnd)
  {
      // Break the doubles into their component parts:
      int deptStartWhole = (int)Math.Truncate(deptBegin);
      int startFraction = (int)((deptBegin - deptStartWhole) * 100);
      int deptEndWhole = (int)Math.Truncate(deptEnd);
      int endFraction = (int)((deptBegin - deptEndWhole) * 100);
  
      return inventoryItems.Where(d =&gt; d.dept &gt;= deptStartWhole).Where(e =&gt; e.subdept &gt;= startFraction)
          .Where(f =&gt; f.dept &lt;= deptEndWhole).Where(g =&gt; g.subdept &gt;= endFraction);
  }
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>[Route("api/InventoryItems/GetDeptRange/{BeginDept:double}/{EndDept:double}")]
  public IEnumerable&lt;InventoryItem&gt; GetInventoryByDeptRange(double BeginDept, double EndDept)
  {
      return _inventoryItemRepository.GetDepartmentRange(BeginDept, EndDept);
  }
  </code></pre>
  
  <p>When I try to invoke this method, via:</p>
  
  <pre><code>http://localhost:28642/api/inventoryitems/GetDeptRange/1.1/99.99
  </code></pre>
  
  <p>...I get, "<em>HTTP Error 404.0 - Not Found
  The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.</em>"</p>
  
  <p>The related methods run fine (other methods on this Controller).</p>