title: ASP.Net Web API sub folders
body: <p>I have FeatureA folder under my root folder (i.e. <a href="http://www.MyCompanyName.Come/FeatureA" rel="nofollow">http://www.MyCompanyName.Come/FeatureA</a>) that will hold several controllers under it:</p>
  
  <pre><code>public static class WebApiConfig
  {
      public static void Register(HttpConfiguration config)
      {
           config.Routes.MapHttpRoute(
                name: "FeatureA",
                routeTemplate: "FeatureA/api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
          );
  
           config.Routes.MapHttpRoute(
                name: "DefaultApi",
                routeTemplate: "api/{controller}/{id}",
                defaults: new { id = RouteParameter.Optional }
          );
      }
  }
  </code></pre>
  
  <p><strong>Does my controller will be named HomeFeatureAController, by convention?</strong> </p>
  
  <p>Please tell me how to write a controller for FeatureA Home Page and other controllers under it.</p>
  
  <p>FYI: I have the following folder structure:</p>
  
  <p>Views></p>
  
  <p>.. Home></p>
  
  <p>.. .. Index.chtml</p>
  
  <p>.. .. FeatureA></p>
  
  <p>.. .. .. Index.chtml</p>
  
  <h1>UPDATE:</h1>
  
  <p>I found a great article recommending me to move Features (e.g. FeatureA) sub systems to MVC Areas. I will try the solution in this article:
  <a href="http://blogs.infosupport.com/asp-net-mvc-4-rc-getting-webapi-and-areas-to-play-nicely/" rel="nofollow">http://blogs.infosupport.com/asp-net-mvc-4-rc-getting-webapi-and-areas-to-play-nicely/</a></p>