title: MVC routing for parent child relationships
body: <p>I'm building an APS.net MVC 2 app, where I have a parent table and a child table.</p>
  
  <p>I've got the controller, view and model built for the parent table, so I can Add, Edit, View Details and dete records from the parent table.</p>
  
  <p>I using the following routing to do this:</p>
  
  <pre><code>routes.MapRoute(
                  "Default",                                              // Route name
                  "{controller}/{action}/{id}",                           // URL with parameters
                  new { controller = "Parent", action = "List", id = "" }  // Parameter defaults
  </code></pre>
  
  <p>This setup lets me use the following urls in my app:<br/></p>
  
  <blockquote>
    <p>To list all parent records: 
    /Parent/List <br/> To view details for
    a specific parent record:
    /Parent/Details/&lt; ID> <br/> To Edit a
    specifc parent record:
    /Parent/Edit/&lt; ID> <br/></p>
  </blockquote>
  
  <p>etc <br/></p>
  
  <p>Now I have a child table for each parent record. What is the standard routing for this?<br/></p>
  
  <blockquote>
    <p>To list app child records for a
    specific parent:
    Parent/&lt; ID>/Child/List <br/> To view
    details for a specific child record:
    Child/Details/&lt; ID> <br/> To edit a
    specific child record: Child/Edit/&lt; ID>
    <br/></p>
  </blockquote>
  
  <p>Does that look right?  And how would I go about setting up the MapRoute?</p>