title: viewmodel problem, "does not contain definition"
body: <p>I get this error 'object' does not contain a definition for 'Images' and no extension method 'Images' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)  </p>
  
  <p>inside my index.aspx</p>
  
  <pre><code>&lt;div class="wrapCarousel"&gt;  
  &lt;div class="Carousel"&gt;  
     &lt;% foreach (var image in Model.Images){ %&gt;
     &lt;div class="placeImages"&gt;
      &lt;img width="150px" height="150px" src="../Img/&lt;%=image.TnImg%&gt;" alt="&lt;%=image.Name%&gt;" /&gt;
      &lt;div class="imageText"&gt;   
       &lt;%=image.Name%&gt;
      &lt;/div&gt;
     &lt;/div&gt;
     &lt;% } %&gt;
  </code></pre>
  
  <p>
  
  </p>
  
  <p>this is my homecontroller.cs:</p>
  
  <pre><code>        public ActionResult Index()
      {
          ViewData["noOfPlaces"] = noOfPlaces();
  
  
          ImageViewModel imageViewModel = new ImageViewModel();
          imageViewModel.Images = getImages();
  
          return View("Index", imageViewModel); 
      }
  </code></pre>
  
  <p>and this is my Imageviewmodel.cs:</p>
  
  <pre><code>    namespace laMVC.Models
  {
      public class ImageViewModel
      {
          public IList&lt;Image&gt; GetImages { get; set; }
          public IList&lt;Image&gt; Images { get; set; }
          public Image Image { get; set; }
      }
  }
  </code></pre>
  
  <p>How come index.aspx can't find Model.Images?</p>