title: Create DropDownListFor using strings from a List<string>
body: <p>I feel this should be simple but haven't found a guide on here that explains the use of dropdownlistfor in MVC.</p>
  
  <p>I have a simple List of Names in a method in a class Users:</p>
  
  <pre><code>public List&lt;string&gt; getUsersFullNames()
      {
          return (from da in db.Dat_Account
                  join ra in db.Ref_Account on da.AccountID equals ra.AccountID
                  select ra.FirstName + " " + ra.Surname).ToList();
      }
  </code></pre>
  
  <p>I want to display each of these names in a dropdownlist so that a name can be selected.</p>
  
  <p>I tried to get this working but have had no success.</p>
  
  <p>My controller:</p>
  
  <pre><code>[Authorize]
      public ActionResult ManageUserAccounts()
      {
              ViewBag.UserList = oUsers.getUsersFullNames();
              return View();
      }
  </code></pre>
  
  <p>My Model:</p>
  
  <pre><code>public class ManageUserAccountsViewModel
  {
      [Display(Name = "Users")]
      public List&lt;SelectListItem&gt; UserList { get; set; }
  }
  </code></pre>
  
  <p>My View:</p>
  
  <pre><code>Html.DropDownListFor(model =&gt; model.UserList, new SelectList(oUsers.getUsersFullNames(), "Select User"));
  </code></pre>
  
  <p>I'm quite new to asp.net MVC as I have always used webforms in the past. Has anyone any idea if this is possible or a way to display this?</p>
  
  <p>Thanks, </p>