title: DropDown for Edit() [Razor]View, Pre-Loaded with Data from Model
body: <p>I have the dropdowns in my Create() View working perfect.</p>
  
  <p>But in the Edit() View I can't get the Data that was submited during the Create() to show up in DropDowns with the Value enterened upon Create()</p>
  
  <p>I just have textboxs in place at the moment And would really like to have Data Represented in a dropdown for easy selection.</p>
  
  <p><strong>Here is one example:</strong></p>
  
  <p>Create() View - One dropdown is for EmployeeTypes, and stores selected to EmployeeTypeId</p>
  
  <p>Now How do I get that to show up in the Edit() View as the same dropdown, but with Value of EmployeeId already selected?</p>
  
  <hr>
  
  <p>I have a EmployeeViewModel for the Create() View</p>
  
  <p>But I am just passing the model directly into the Edit() View</p>
  
  <p>Should I create some kind of Employee "partial class" for the Edit() View? to handle the IEnumerable Lists?</p>
  
  <p>and set:</p>
  
  <pre><code>var employeeTypes = context.EmployeeTypes.Select(et =&gt; new SelectListItem
              {
                  Value = et.EmployeeTypeId.ToString(),
                  Text = et.Type.ToString()
              });
  </code></pre>
  
  <hr>
  
  <p>Or should I pass them in as ViewData?</p>
  
  <p>If so how to do you pass a List in as ViewData and get it to display as an @Html.DropDownList  with the Value passed in from the @Model as the defualt value?</p>