title: i got an error 'System.Collections.Generic.IEnumerable<EventListing.Models.MyViewModel>' does not contain a definition
body: <p>how can i Pass multiple model to controller and bind the data to viewpage</p>
  
  <p>i have list page in that page contains two tabs, one for active list and another one In active list.</p>
  
  <p>how can i create a model and bind the data to viewpage.</p>
  
  <p>how can i bind the data to view page, i used strong typed model</p>
  
  <pre><code>public class EventInfo  
      {
  
          public string SUBSITE { get; set; }
          public string TITLE { get; set; }
  ------
  }
  public class MyViewModel
  {
      public IEnumerable&lt;SomeViewModel&gt; Active { get; set; }
      public IEnumerable&lt;SomeViewModel&gt; InActive { get; set; }
  }
  
  
  
  var model = new MyViewModel
              {
                  Active = EventModel.EventList(ids, "", "", "", "", "", "", "", "1", "").ToList(),
                  InActive = EventModel.EventList(ids, "", "", "", "", "", "", "", "1", "1").ToList()
              };
  </code></pre>
  
  <p>this is my view page code</p>
  
  <pre><code>&lt;% foreach (var model in Model)
     { %&gt;
       &lt;tr&gt;
         &lt;td&gt;
            &lt;%= Html.ActionLink(model.TITLE, "Detail", new { id = model.EVENT_ID })%&gt;
          &lt;/td&gt;
  </code></pre>
  
  <p>I got an error</p>
  
  <pre><code>Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately. 
  
  Compiler Error Message: CS1061: 'System.Collections.Generic.IEnumerable&lt;EventListing.Models.MyViewModel&gt;' does not contain a definition for 'Active' and no extension method 'Active' accepting a first argument of type 'System.Collections.Generic.IEnumerable&lt;EventListing.Models.MyViewModel&gt;' could be found (are you missing a using directive or an assembly reference?)
  
  Source Error:
  
  
  
  Line 221:                    &lt;/thead&gt;
  Line 222:                    &lt;tbody&gt;
  Line 223:                        &lt;% foreach (var model in Model.Active)
  Line 224:                           { %&gt;
  Line 225:                        &lt;tr&gt;
  </code></pre>