title: Showing object's name instead of Id in MVC
body: <p>Consider I have a Model like this:</p>
  
  <pre><code>public class Branch
  {
      public int Id { get; set; }
      public string Name { get; set; }
      public int ParentId { get; set; }
  }
  </code></pre>
  
  <p>And example data:</p>
  
  <p>Id ----- Name ----- ParentId</p>
  
  <p>01 ----- Parent ----- 00</p>
  
  <p>02 ----- Child ------- 01</p>
  
  <p>In the Index.html view I'm showing a list of Items in this table:</p>
  
  <p><a href="https://i.stack.imgur.com/VFNKz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VFNKz.png" alt="enter image description here"></a></p>
  
  <p>So what if I want to show Parent's Name instead of ParentId? I can separate Parent's model from the child's model, but I want them to be in the same table.</p>