WebApi route not working
<p>Here is my route:</p>

<pre><code>config.Routes.MapHttpRoute(
   name: "CreateUser",
   routeTemplate: "api/User/CreateUser",
   defaults: new { controller = "User", action = "CreateUser" }
);
</code></pre>

<p>Here is the endpoint:</p>

<pre><code>[HttpPost]
public async Task&lt;User&gt; CreateUser([FromBody] User user)
{
    db.DirectUsers.Add(user);
    await db.SaveChangesAsync();
    return user;
}
</code></pre>

<p>I am sending this post data:</p>

<pre><code>{
    "UserId" : 1
    "Name" : "Nick"
    "TwitterHandel" : "x"
}
</code></pre>

<p>To : <code>http://localhost:56792/api/User/CreateUser</code></p>

<p>But im getting a 404</p>