title: Controllers and views in subfolders
body: <p>I am developing a web application using ASP.NET MVC 4 and I would like to organize my controllers and views in the following way:</p>
  
  <pre><code>/Controller    
      /Admin
          /LessonController.cs
          /ExerciseController.cs    
      HomeController.cs
  
  /Views
          /Admin
                /Lesson
                     /Index.cshtml
          /Home
                /Index.cshtml
  </code></pre>
  
  <p>I tried the following code to register routes but it does not work:</p>
  
  <pre><code>public static void RegisterRoutes(RouteCollection routes)
          {
              routes.IgnoreRoute("{resource}.axd/{*pathInfo}");
  
              routes.MapRoute(
                  name: "Default",
                  url: "{controller}/{action}/{id}",
                  defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
              );
  
              routes.MapRoute(
                  name: "Admin",
                  url: "Admin/{controller}/action/{id}",
                  defaults: new { controller = "Lesson", action = "Index", id = UrlParameter.Optional }
                  );
  
          }
  </code></pre>
  
  <p>Do you have any advices?</p>