title: How should I structure my ViewModel for this hierarchical data I need to display in ASP.NET MVC?
body: <p>I have a view that will look like this:</p>
  
  <p><img src="https://imgur.com/85y84.png" alt="alt text"></p>
  
  <p>I'm trying to figure out how I should represent my ViewModel for this view.  Each "Agency" can have multiple "Business Units" and each "Business Unit" can have several "Clients".</p>
  
  <p>In the database I easily represent this with a mapping table and foreign keys for the Agency, BusinessUnit and Client tables.</p>
  
  <p>However, now I need to use LINQ to query this data out of the database and then construct a ViewModel object that represents this tree-like structure so my View can render it.</p>
  
  <p>Can anyone give me tips on what data-structure I should use, or what my ViewModel might look like for this hierarchical structure in C# code?  I need to create my ViewModel object to pass on to this view.</p>
  
  <p>Any suggestions on how to represent the ViewModel are appreciated!</p>