title: The model item passed into the dictionary is of type 'System.Collections.Generic.List ErroR
body: <p>I get the following error here:</p>
  
  <pre><code>        Line 45:         &lt;tr&gt;
          Line 46:             &lt;td width="15%" valign="top"&gt;
          Line 47:                 @{Html.RenderAction("GetMenu","RoomType");}
          Line 48:             &lt;/td&gt;
          Line 49:             &lt;td valign="top"
  
  
   'The model item passed into the dictionary is of type   
   'System.Collections.Generic.List`1[System.Object]', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1[LicentaTest.Models.RoomType]'.
  </code></pre>
  
  <p>I dont know where i am wrong .this is my GetMenu method from RoomTypecontroller:</p>
  
  <pre><code>      'public ActionResult GetMenu()
          {
          DBContext.Current.Open();
          var model =RoomType.SelectAll();
          DBContext.Current.Close();
          return PartialView(model);
           }'
  </code></pre>
  
  <p>And here is my Get menu view:</p>
  
  <pre><code>      @model IEnumerable&lt;LicentaTest.Models.RoomType&gt;
        @using LicentaTest.Models
        &lt;script type="text/javascript"&gt;
        $(function () {
        $("#categories").addClass("ui-widget");
        $("a", "#categories").button().width(200);
        });
        &lt;/script&gt;
        &lt;ul id="categories"&gt;
        @foreach (var tipcamera in Model) 
        { 
  &lt;li&gt;@Html.ActionLink(tipcamera.Room_Type,"Browse","RoomType",new{RoomType=tipcamera.Room_Type},null)
         &lt;/li&gt;
  
  
          }
  </code></pre>
  
  <p></p>