title: Returning Multiple Lists in ASP.NET MVC (C#)
body: <p>I'm somewhat new to the ASP.NET MVC architecture and I'm trying to sort out how I could return multiple sets of data to the view.</p>
  
  <pre><code>    public ActionResult Index(string SortBy)
      {
          var actions = from a in dbActions.Actions
                         orderby a.action_name
                         ascending
                         select a;
          return View(actions.ToList());
      }
  </code></pre>
  
  <p>This code works very well for returning a single dataset.  The situation I have is a that I've got a list of objects, each of which has a subset of objects that I want to display in a hierarchy on the output page.  I'm not sure whether I'm looking for the quick way or the right way, thoughts on both avenues would be very much appreciated.</p>
  
  <p>Thanks!</p>