title: WebApi Route returns Not Found in Orchard Module
body: <p>I am creating an Orchard module where i want to add a WebApi controller.</p>
  
  <p>My Module.txt:</p>
  
  <pre><code>Name: ModuleName
  AntiForgery: enabled
  Author: The Orchard Team
  Website: http://orchardproject.net
  Version: 1.0
  OrchardVersion: 1.0
  Description: Description for the module
  Features:
      ModuleName:
          Description: Description for feature ModuleName.
  </code></pre>
  
  <p>I have added an ApiRoutes class:</p>
  
  <pre><code>using Orchard.Mvc.Routes;
  using Orchard.WebApi.Routes;
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Http;
  
  namespace ModuleName
  {
      public class ModuleNameApiRoutes : IHttpRouteProvider
      {
  
          public void GetRoutes(ICollection&lt;RouteDescriptor&gt; routes)
          {
              foreach (var routeDescriptor in GetRoutes())
              {
                  routes.Add(routeDescriptor);
              }
          }
  
          public IEnumerable&lt;RouteDescriptor&gt; GetRoutes()
          {
              return new[] {
                  new HttpRouteDescriptor {
                      Name = "ModuleName",
                      Priority = 5,
                      RouteTemplate = "api/modulename/{controller}/{id}",
                      Defaults = new {
                          area = "ModuleName",
                          id = RouteParameter.Optional
                      }
                  }
              };
          }
      }
  }
  </code></pre>
  
  <p>Then i have added an apicontroller:</p>
  
  <pre><code>using Newtonsoft.Json.Linq;
  using Orchard;
  using Orchard.Data;
  using ModuleName.Models;
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Net;
  using System.Net.Http;
  using System.Web.Http;
  
  namespace ModuleName.Controllers
  {
      public class ConsumptionController : ApiController
      {
          public IOrchardServices Services { get; private set; }
          private readonly IRepository&lt;Vessel_ConsumptionPartRecord&gt; _repository;
          public ConsumptionController(IOrchardServices orchardServices,IRepository&lt;Vessel_ConsumptionPartRecord&gt; repository)
          {
              _repository = repository;
          }
  
          // GET: Home
         public HttpResponseMessage Get()
          {
  
              ...
          }
  
  
      }
  }
  </code></pre>
  
  <p>I am on Localhost and the home url is:</p>
  
  <p><a href="http://localhost:30321/OrchardLocal" rel="noreferrer">http://localhost:30321/OrchardLocal</a></p>
  
  <p>When i go to </p>
  
  <p><a href="http://localhost:30321/OrchardLocal/api/ModuleName/Consumption" rel="noreferrer">http://localhost:30321/OrchardLocal/api/ModuleName/Consumption</a></p>
  
  <p>I get a Not Found page.</p>
  
  <p>Can anyone shed some light?</p>