title: MVC dropdownlist , data not displaying when model is not Ienumerable
body: <p>I am having a problem passing to the View a Model that contains the dropdown data and the model.</p>
  
  <p>With this code my page loads, but the dropdownlist contains "System.Web.MVC.SelectList" when selected. </p>
  
  <p>Here's my controller code.</p>
  
  <pre><code>public ActionResult Index(string productNameFilter, string productCategoryFilter, String productTypeFilter )
  {
      var ddl = new Items();
      ddl.CategoryddList = itemsRepository.GetItemDdl("Item Categories").Select(c =&gt; new SelectListItem
      {
          Value = c.DropdownID.ToString(),
          Text = c.DropdownText
      });
      ViewBag.CategoryDD = new SelectList(ddl.CategoryddList, "Value", "Text");
      var model = itemsRepository.GetItemByName(productNameFilter);
      return View(model);
  }
  </code></pre>
  
  <p>Here's my view</p>
  
  <pre><code>@model Ienumerable&lt;Models.items.items&gt;
  
  @Html.DropDownList("productCategoryFilter", 
                     new SelectList(ViewBag.CategoryDD), 
                     "---Select Category---") 
  </code></pre>