title: Trouble wrapping my head around this nested Departments issue
body: <p>after tweaking my code for a bit I ended up with this little proof of concept code:</p>
  
  <pre><code>private void button1_Click(object sender, EventArgs e)
  {            
      DepartmentRepository repo = new DepartmentRepository();
      var entries = repo.FindAllDepartments(); //Returns IQueryable&lt;Department&gt;
  
      treeView1.BeginUpdate();
      var parentDepartments = entries.Where(d =&gt; d.IDParentDepartment == null).ToList();
      foreach (var parent in parentDepartments)
      {
          TreeNode node = new TreeNode(parent.Name);
          treeView1.Nodes.Add(node);
  
          var children = entries.Where(x =&gt; x.IDParentDepartment == parent.ID).ToList();
          foreach (var child in children)
          {
              node.Nodes.Add(child.Name);
          }
      }
  
      treeView1.EndUpdate();
  }
  </code></pre>
  
  <p>It places every parent Department in the TreeView control and then correctly assigns it's children to the correct Parent.</p>
  
  <p>My problem is, how do I handle children of children? Nested Departments.</p>
  
  <p>I can't seem to wrap my head around it.</p>
  
  <p>Thanks for any guidance.</p>