title: Creating Html.DropDownList with Values
body: <p>I am trying to create a dropdown list that contains values from my data model.  I cannot seem to get this to work inside of my view:</p>
  
  <pre><code>@Html.DropDownList("Program Types", 
  new SelectList(Model.Select(x =&gt; x.ProgramType.ProgramType).Distinct().OrderBy(x =&gt; x),
  Model.Select(x =&gt; x.ProgramType.ProgramTypeId).Distinct().OrderBy(x =&gt; x)))
  </code></pre>