title: C# MVC - Access Items in a List that is in a Model
body: <p>I have a Blog that is populating from a BlogResponseModel, and the related comments for each Blog entry are held in a List.  It looks like this:</p>
  
  <pre><code>public class BlogResponseModel
  {
      public int Id { get; set; }
      public DateTime SubmissionDate { get; set; }
      public string Title { get; set; }
      public string ImageID { get; set; }
      public string ImageAttribution { get; set; }
      public string Body { get; set; }
      public List&lt;BlogCommentModel&gt; CommentList { get; set; }
  }
  </code></pre>
  
  <p>The comments are collected and each comment is related to the Id element above. The BlogCommentModel looks like this:</p>
  
  <pre><code>public class BlogCommentModel
  {
      public int CommentId { get; set; }
      public int CommentCount { get; set; }
      public DateTime CommentDate { get; set; }
      public string Commenter { get; set; }
      public string CommenterEmail { get; set; }
      public string Comment { get; set; }
      public int BlogParentId { get; set; }
  }
  </code></pre>
  
  <p>In my view, I am using a foreach to format and display each Blog entry, and this is working very well.  Where I have hit the wall is figuring out how to embed the related comments at the foot of each Blog post.  </p>
  
  <p>Here is the current attempt in the View that has me stumped. I do a foreach to render the Blog post...</p>
  
  <pre><code>   @foreach (var response in Model)
     {
          // enter all the Blog specifics here...
  </code></pre>
  
  <p>At this point, the Blog entry is rendered, and we are ready to add the Comments:</p>
  
  <pre><code>&lt;div class="message row"&gt;
      &lt;div&gt;
          &lt;H5&gt;Comments&lt;/H5&gt;
      &lt;/div&gt;
      @foreach (var comment in ?? WHAT ?? (how do I access BlogResponseModel)
      {
          &lt;div class="replies span12"&gt;
              &lt;div class="reply"&gt;
                  &lt;div class="created pull-right"&gt;
                      @comment.CommentDate
                  &lt;/div&gt;
                  &lt;div class="created"&gt;
                      @comment.Commenter
                  &lt;/div&gt;
                  &lt;div&gt;
                      @comment.Comment
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      }
  &lt;/div&gt;
  </code></pre>
  
  <p>How do I populate the Comments from List CommentList that is in the BlogResponseModel?</p>
  
  <p>Thanks in advance for your advice.  I'm new to MVC and still wrapping my mind around the architecture.</p>