title: How to get list of user in a particular role?
body: <p>How to get list of user in a particular role in ASP.net MVC5. I have following code but it returns all the user.</p>
  
  <pre><code> public ActionResult Index()
    {
          var users = Context.Users.ToList();
          return View(users);
    }
  </code></pre>
  
  <p>I have role name "Coordinator". I just want all the users with that role.</p>
  
  <p>//View File</p>
  
  <pre><code>@model IEnumerable&lt;Microsoft.AspNet.Identity.EntityFramework.IdentityUser&gt;
  @{
      ViewBag.Title = "Index";
  }
  
  &lt;h2&gt;Roles Listing &lt;/h2&gt;
  &lt;div&gt;
      &lt;p&gt;&lt;strong&gt;Username | Email&lt;/strong&gt;&lt;/p&gt;
      @foreach (var user in Model)
      {
          &lt;p&gt;
              @user.UserName   |   @user.Email | @Html.ActionLink("Delete", "Delete", new { id = user.Id })
          &lt;/p&gt;
      }
  &lt;/div&gt;
  </code></pre>