title: How to Limit Nested navigation property in Asp.net mvc Controller
body: <p>I Get A record from database with entity framework. it have Nested navigation Property .</p>
  
  <pre><code>  public partial class Comment
  {
      public Comment()
      {
          this.Comments1 = new HashSet&lt;Comment&gt;();
      }
  
      public int CommentId { get; set; }
      public Nullable&lt;int&gt; ParentId { get; set; }
      public string Title { get; set; }
  
      public virtual ICollection&lt;Comment&gt; Comments1 { get; set; }
      public virtual Comment Comment1 { get; set; }
  }
  </code></pre>
  
  <p>Relation Between Id And Parent Id. and my navigation is Comments1 .
  Now I select a Record that have 5 Nested Navigation . i want  limit Only to 3 Nested Navigation in my controller With C# Code. How to create a recursive Method and limit Nested Navigation to 3 Level ?</p>