title: Asp.Net KeyValuePair<string, { } > does not contain definition or extension
body: <p>I've created a web app where you can leave recommendations for a person, a person can have multiple recommendations, and got to the point where I'd like to view all recommendations for a particular Person. Once I click on the link to view the recommendations I get an error saying : </p>
  
  <blockquote>
    <p>'KeyValuePair &lt;`string, Recommendation> does not contain a definition for 'Recommendations' and no extension method 'Recommendations' accepting a first argument of type 'KeyValuePair' could be found. </p>
  </blockquote>
  
  <p>Here's some of my code, hopefully someone can help me resolve this issue I've been stuck on for hours. </p>
  
  <p><strong>Recommendation Controller</strong>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>using Lab3Models.Models;
  using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.Mvc;
  
  namespace Lab3Models.Controllers
  {
      public class RecommendationController : Controller
      {
          private static IDictionary&lt;string, Person&gt; _people = null;
          
          ....
  
          public ActionResult Show(string id)
          {
              if (Session["people"] != null)
              {
                  _people = (Dictionary&lt;string, Person&gt;)Session["people"];
              }
              else
              {
                _people = new Dictionary&lt;string, Person&gt;();
                  Session["people"] = _people;
              }
              if (!_people.ContainsKey(id))
              {
                  return HttpNotFound("Sorry, but can't find id: " + id);
              }
              return View(_people[id]);    
          }
      }
  }</code></pre>
  </div>
  </div>
  
  <strong>Person &amp; Recommendation Models</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>public class Person
      {
          public string Id { get; set; }
          public string FirstName { get; set; }
          public string MiddleName { get; set; }
          public string LastName { get; set; }
          public ICollection&lt;Recommendation&gt; Recommendations { get; set; }
  
          public Person()
          {
              Recommendations = new List&lt;Recommendation&gt;();
          }
      }
  
  
  public class Recommendation
      { 
          public string Id { get; set; }
          public int Rating { get; set; }
          public string Narrative { get; set; }
          public string RecommenderName { get; set; }
          public Person ThePerson { get; set; }
      }</code></pre>
  </div>
  </div>
  </p>
  
  <p><strong>Show View</strong></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>@model IDictionary&lt;string, Lab3Models.Models.Recommendation&gt;
  
  &lt;h2&gt;@ViewBag.Title&lt;/h2&gt;
  
  &lt;table class="table"&gt;
      &lt;tr&gt;
          &lt;th&gt;
              Id
          &lt;/th&gt;
          &lt;th&gt;
              Rating
          &lt;/th&gt;
          &lt;th&gt;
              Narrative
          &lt;/th&gt;
          &lt;th&gt;
              Recommender's Name
          &lt;/th&gt;
      &lt;/tr&gt;
               
      @foreach (var item in Model)
      {
          foreach (var rec in item.Recommendations)
          {
              &lt;tr&gt;
                  &lt;td&gt;
                      @item.Value.Id
                  &lt;/td&gt;
                  &lt;td&gt;
                      @item.Value.Rating
                  &lt;/td&gt;
                  &lt;td&gt;
                      @item.Value.Narrative
                  &lt;/td&gt;
                  &lt;td&gt;
                      @item.Value.RecommenderName
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
      }
  &lt;/table&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Please, any help would be great. </p>
  
  <p><strong>EDIT</strong>
  Iterating over a dictionary isn't my problem though, I've iterated through my person dictionary already to display all people I've added to the list. My problem is showing the list of recommendations for a particular person from the original person dictionary.  </p>