title: create user with more than one role in asp.net identity
body: <p>i am trying to create user with more than one role Here is my viewModel for new user</p>
  
  <pre><code> public class UserForNewViewModel
      {
          public RegisterViewModel User { get; set; }
          public List&lt;IdentityRole&gt; Roles { get; set; }
      }
  </code></pre>
  
  <p>Here is my action</p>
  
  <pre><code> [HttpGet]
      public async Task&lt;ActionResult&gt; Create()
      {
          var roles = await _context.Roles.ToListAsync();
          var model = new UserForNewViewModel()
          {
              Roles = roles
          };
          return View(model);
      }
  </code></pre>
  
  <p>In view how can i do with multi roles</p>
  
  <pre><code>&lt;div class="form-group"&gt;
              &lt;label&gt;Roles&lt;/label&gt;
              ???????????????????????????????????
              @Html.DropDownListFor(x =&gt; x.Roles., new SelectList(Model.Roles, "Id", "Name"), ("Seçin..."), new { @class = "form-control", id = "ParentId" })
          &lt;/div&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/l9T2K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/l9T2K.png" alt="enter image description here"></a></p>