title: How do I create a view model for a populated drop down list in ASP.NET MVC 3
body: <p>I'm trying to teach myself MVC3. Im converting from webforms.</p>
  
  <p>I need to create a view model that includes a dropdown list that I can pass to the controller and eventually render in the View.</p>
  
  <p>How can I accomplish this? I have the skeleton but I dont know what the code is to actually create the name value pairs for the view. </p>
  
  <pre><code>namespace DH.ViewModels
  {
      public class SharedLayoutViewModel
      {
          public IEnumerable&lt;SelectListItem&gt; Products
          {
              //some code to setup the value/name pairs to be rendered in the view.
              //example: 
              //&lt;option value="1"&gt;Mustard&lt;/option&gt;
              //&lt;option value="2"&gt;Ketchup&lt;/option&gt;
              //&lt;option value="3"&gt;Mayo&lt;/option&gt;
              //&lt;option value="4"&gt;Relish&lt;/option&gt;
              //&lt;option value="5"&gt;BBQ&lt;/option&gt;
           }
       }
    }
  </code></pre>
  
  <p>Thanks</p>