title: How can I manually add another model to view?
body: <p>When i created view called Products i specified model Product for it  trough view generator window and i used that model to show products from database </p>
  
  <pre><code>@foreach (var item in Model)
      {
          &lt;div class="col-md-3 col-sm-3 col-column productbox"&gt;
              &lt;img src="@Url.Content(item.ProductImg)" class="img-responsive" &gt;
              &lt;div class="producttitle"&gt;@Html.DisplayFor(modelItem =&gt; item.ProductName)&lt;/div&gt;
              &lt;div class="producttitle"&gt;@Html.DisplayFor(modelItem =&gt; item.ProductDesc)&lt;/div&gt;
              &lt;div class="productprice"&gt;&lt;div class="pull-right"&gt;&lt;a href="#" class="btn btn-danger btn-sm" role="button"&gt;BUY&lt;/a&gt;&lt;/div&gt;&lt;div class="pricetext"&gt;@Html.DisplayFor(modelItem =&gt; item.ProductPrice)&lt;/div&gt;&lt;/div&gt;
          &lt;/div&gt;
  
      }
  </code></pre>
  
  <p>now i want to generate list of categories from database on same view as actionlinks so when user clicks, it show products from that category ...something like this </p>
  
  <pre><code>&lt;div class="col-md-2"&gt;
      &lt;ul&gt;
  
  @foreach (var item in Model)
  {
      &lt;li&gt;
          @Html.ActionLink(@Html.DisplayFor(modelItem =&gt; item.CategoryName).ToString(),"Products",new { controller="Home",action="Products",id=modelItem=&gt;item.CategoryID})
      &lt;/li&gt;
  
  }
      &lt;/ul&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>but i need to include somehow model of Category in view like this is included for Product</p>
  
  <pre><code>@model IEnumerable&lt;OnlineProdajaSlika.Models.Product&gt;
  </code></pre>
  
  <p>i am mvc newbie and cant figure it out ,any help is appreciated </p>