title: Displaying nested comments in MVC 3 blog
body: <p>I am making a Blog using MVC 3, Razor and Entity Framework. I am now working on the <strong>Comment</strong> section.</p>
  
  <p>I am using the following table for comments.</p>
  
  <p><img src="https://i.stack.imgur.com/jQ0Mc.png" alt="My Comment table"></p>
  
  <p>Here I am using the 'CommentParent' column and setting it a value of an another 'CommentID' if a user is <strong>replying</strong> to a comment, else I have set a value of null.</p>
  
  <h2>Problem</h2>
  
  <p>I am using the following code to display comments,</p>
  
  <pre><code>@foreach (var comment in Model.Comments)
  {
      &lt;div&gt;
          @comment.CommentContent
      &lt;/div&gt;
      &lt;br /&gt;
  }
  </code></pre>
  
  <p>I am not sure how to display the "replyTo" comments as shown in the image below...
  <img src="https://i.stack.imgur.com/Jv4Kr.png" alt="enter image description here">
  Please can anyone guide me as how this can be done...</p>