title: render and select data from mvc3 DropDown list
body: <p>Simple situation</p>
  
  <p>One object User have many UserGroups.</p>
  
  <p>I want to implement on mvc3 form editing or creating action to select UserGroups from drop down.</p>
  
  <p><strong>Controller:</strong></p>
  
  <pre><code>private List&lt;User&gt; GetAllUsers()
  {
      List&lt;User&gt; users;
      users = find all users to List...
      return users;
  }
  
  public ActionResult Edit(Guid Id)
  {
     ViewBag.UserGroups = new SelectList(GetAllUsers(), "UserId", "Name");
     return View();
  }
  </code></pre>
  
  <p><strong>View:</strong></p>
  
  <pre><code>&lt;div class="editor-label"&gt;
      @Html.LabelFor(model =&gt; model.UserGroupId, "UserGroupId")
  &lt;/div&gt;
  &lt;div class="editor-field"&gt;
      @Html.DropDownList(WHAT TO PUT HERE ?);
      @Html.ValidationMessageFor(model =&gt; model.UserGroupId)
  &lt;/div&gt;
  </code></pre>