title: mvc dropdown binding for an int in razor view
body: <p>I have a domain/entity object with an integer:</p>
  
  <pre><code>public Int32 HoursToWait {get;set;}
  </code></pre>
  
  <p>I put the same thing in my view model:</p>
  
  <pre><code>public Int32 HoursToWait {get;set;}
  
  &lt;select id="HoursToWait" name="HoursToWait"&gt;
      &lt;option value="1"&gt;1&lt;/option&gt;
      &lt;option value="6"&gt;6&lt;/option&gt;
      &lt;option value="12" selected="selected"&gt;12&lt;/option&gt;
      &lt;option value="12"&gt;24&lt;/option&gt;
      &lt;option value="12"&gt;36&lt;/option&gt;
      &lt;option value="12"&gt;48&lt;/option&gt;
      &lt;option value="12"&gt;72&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>The crux of the issue is that my entity model is an integer. I'd like to display it as a drop down, to only allow certain hours to be selected. And, once selected, I'd like to default it the next time it's displayed.</p>
  
  <p>The above code "works", but it's hard coded to default to 12 so it's corny and if the user changes the HoursToWait value, when reloaded it just goes back to 12.</p>
  
  <p>So primarily question would be what sort of view model property and razor elements should I use to handle this?</p>