title: WebApi 2.0 - No HTTP resource was found that matches the request URI
body: <p>With the code below I hit the constructor but never the action. The URL is 
  <a href="http://localhost:64704/api/mytest/mymethod" rel="nofollow noreferrer">http://localhost:64704/api/mytest/mymethod</a>. Same problem when I tried to change the routing like this :</p>
  
  <pre><code>config.Routes.MapHttpRoute(
              name: "DefaultApi",
              routeTemplate: "api/{controller}/{action}"
          );
  
  [Route("api/[controller]")]
  public class MyTestController : ApiController
  {
      readonly IMyFacade myFacade;
      public MyTestController(IMyFacade myFacade) =&gt; this.myFacade = myFacade;
  
      [HttpPost]
      [Route("mymethod")]
      public IHttpActionResult MyMethodName([FromBody]MyModel model)
      {
          //some code here
  
          return Ok();
      }
  }
  
  public static void Register(HttpConfiguration config)
  {
      // Web API configuration and services
  
      // Web API routes
      config.MapHttpAttributeRoutes();
  
      config.Routes.MapHttpRoute(
          name: "DefaultApi",
          routeTemplate: "api/{controller}/{id}",
          defaults: new { id = RouteParameter.Optional }
      );
  }
  </code></pre>
  
  <p>Update 1</p>
  
  <pre><code>public class WebApiApplication : HttpApplication
  {
      protected void Application_Start()
      {
          GlobalConfiguration.Configure(WebApiConfig.Register);
          UnityConfig.RegisterComponents();
      }
  }
  </code></pre>
  
  <p>Update 2</p>
  
  <pre><code>        public static void RegisterComponents()
      {
          var container = new UnityContainer();
  
          // register all your components with the container here
          // it is NOT necessary to register your controllers
  
          // e.g. container.RegisterType&lt;ITestService, TestService&gt;();
  
          /* ...... */
  
          GlobalConfiguration.Configuration.DependencyResolver = new UnityDependencyResolver(container);
      }
  </code></pre>
  
  <p>Update 3
      {
      "Field1": "1",
      "Field2": "some key",
      "Field3": "some name of course"
      }</p>