title: Normal model and IEnumerable model in same view
body: <p>Have a little problem, which I cannot solve by myself. I want to use same model in one view, but once with IEnumerable&lt;> and second time without it.</p>
  
  <p>My View:</p>
  
  <pre><code>@model IEnumerable&lt;AMBIT_CMS_MVC.Areas.Admin.Models.Product&gt;
  
  &lt;!DOCTYPE html&gt;
  
  &lt;html&gt;
  &lt;head&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;DYSKRET - FOLIE OKIENNE&lt;/title&gt;
      @Styles.Render("~/Content/Site.css")
      @Styles.Render("~/Content/bootstrap.css")
      @Scripts.Render("~/Scripts/jquery-1.10.2.min.js")
      @Scripts.Render("~/Scripts/bootstrap.js")
      @Scripts.Render("~/Scripts/buttons.js")
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div class="container-fluid okienne"&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-sm-2"&gt;&lt;/div&gt;
              &lt;div class="col-sm-8 menu"&gt;
                  &lt;a href="http://dyskret.pl/" target="_blank"&gt;
                      &lt;img src="~/Images/logo.png" class="img-responsive fimg" /&gt;
                  &lt;/a&gt;
              &lt;/div&gt;
              &lt;div class="col-sm-2"&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-sm-2"&gt;&lt;/div&gt;
              &lt;div class="col-sm-2 lista"&gt;
                  &lt;ul&gt;
                      @foreach (var item in Model)
                      {
                          &lt;li&gt;@Html.ActionLink(item.Name, "Produkt", new { ProductID = item.ProductID })&lt;/li&gt;
                      }
                  &lt;/ul&gt;
              &lt;/div&gt;
              &lt;div class="col-sm-6 details"&gt;
                  @Html.DisplayFor(m =&gt; m.Name)
              &lt;/div&gt;
              &lt;div class="col-sm-2"&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-sm-2"&gt;&lt;/div&gt;
              &lt;div class="col-sm-8 footerProducts"&gt;
                  Text...
              &lt;/div&gt;
              &lt;div class="col-sm-2"&gt;&lt;/div&gt;
          &lt;/div&gt;
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The problem is that foreach loop will work perfectly (I want to list all the products in this category), but when clicked I want to show also details of it on right, but I cannot because the model is IEnumerable&lt;> and should be simple model (AMBIT_CMS_MVC.Areas.Admin.Models.Product). It's like I want to have Index and Details views in one. How can I achieve this?</p>