title: 404 Not Found for Web API Route
body: <p>I make a call to an ASP.Net Web API which returns 404 Not found. The controller is recognized but the action is not found. </p>
  
  <p>I have tried using attribute routing and <code>[HttpGet]</code> for the action. I've also tried using standard API routing in the WebAPI config file. I've even tried combining the two. </p>
  
  <pre><code>//[HttpGet]
  //[Route("api/User")]
  protected IHttpActionResult GetEmployeeHierarchyList()
  {
    // ...
    return Json(results);
  }
  </code></pre>
  
  <pre class="lang-csharp prettyprint-override"><code>config.Routes.MapHttpRoute(
    name: "GetEmployeeHierarchyListTwo",
    routeTemplate: "api/{controller}/{action}",
    defaults: new { action = "GetEmployeeHierarchyList", }
  );
  </code></pre>
  
  <pre class="lang-js prettyprint-override"><code>return fetch("/api/User/" + api, {
    method: "GET",
    headers: {
      'Accept': 'application/json',
      'Content-Type': 'application/json',
      'credentials': 'include'
    }
  }).then(response =&gt; {
    return response.json();
  })
  </code></pre>
  
  <p>I expect the action to return a string to be handled by the fetch call.</p>