title: WebAPI No action was found on the controller
body: <p>I got an error - No action was found on the controller 'Action' that matches the request.</p>
  
  <p>The url is <code>http://localhost:37331/api/action/FindByModule/1</code>.</p>
  
  <p>The routing I used is </p>
  
  <pre><code>config.Routes.MapHttpRoute(
      name: "DefaultApi",
      routeTemplate: "api/{controller}/{action}/{id}",
      defaults: new { id = RouteParameter.Optional }
  );
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>public class ActionController : ApiController
  {
      private IActionRepository repository = null;
  
      [HttpGet]
      [ActionName("All")]
      public IEnumerable&lt;JsonAction&gt; All()
      {
          return from action in this.repository.Get()
                 select new JsonAction
                 {
                     ID = action.ID,
                     Text = action.Text.Trim(),
                     Description = action.Description.Trim(),
                 };
      }
  
      [HttpGet]
      [ActionName("FindByModule")]
      public IEnumerable&lt;JsonAction&gt; FindByModule(Int64 moduleId)
      {
          return from action in this.repository.FindByModule(moduleId)
                 select new JsonAction
                 {
                     ID = action.ID,
                     Text = action.Text.Trim(),
                     Description = action.Description.Trim(),
                 };
      }
  }
  </code></pre>