title: MVC Nested Controllers and Views
body: <p>Some of our controllers are getting too large, so I am trying to simplify them by refactoring along the lines of:</p>
  
  <pre><code>Areas
      Vehicles
          Controllers
              Cars
                  CarController.cs
                  Engines
                      PistonController.cs
                      ...
          Models
          Views
              Cars
                  EditCar.ascx
                  Engines
                      EditPiston.ascx
                      ShowPiston.ascx
      Animals
      ...
  </code></pre>
  
  <p>(with namespaces matching the folder structure)</p>
  
  <p>I've tried a few variations but can't get the MVC inference to recognise my project structure.</p>
  
  <p>What does the partial view return look like in the action? Ie, EditPiston action with a simple <code>return PartialView(piston)</code> wants to use a view <code>Views-&gt; Engines -&gt; EditPiston.ascx</code>, not <code>Views-&gt; Cars-&gt;Engines -&gt; EditPiston.ascx</code>.</p>
  
  <p>Also, what do I need to do in the RegisterArea? Any specific routes I need to set up?</p>