title: Create list of identity roles
body: <p>I'm using asp.net core and I get list of roles (Identity roles) like:</p>
  
  <pre><code>   [HttpGet]   
     public async Task&lt;IActionResult&gt; GetAvailableUserRoles()
          {
              var roles =  _roleManager.Roles.ToList();
              return Ok(roles);
          }
  </code></pre>
  
  <p>So I want to display this list on view </p>
  
  <p>I have an idea that first approach is to call controller like:</p>
  
  <pre><code>&lt;form asp-controller="security" asp-action="GetAvailableUserRoles" method="get"&gt;
  
  &lt;/form&gt;
  </code></pre>
  
  <p>Now, how can I do a dropdown with <code>RoleId</code> and <code>Name</code>? </p>