title: ASP.NET MVC Model.Where clause
body: <p>I am create a view that has two tables - one for admin and one for member. I am stuck trying to separate the users into each table</p>
  
  <p>This is my view code currently (Trying to filter 'admin' users for the code below)</p>
  
  <pre><code>@model IEnumerable&lt;Microsoft.AspNet.Identity.EntityFramework.IdentityUser&gt;
  
  @foreach (var item in Model.Where(User.IsInRole("Admin"))
  {
  
      &lt;tr&gt;
          &lt;td class="c"&gt;
              @item.UserName
          &lt;/td&gt;
  
          &lt;td class="c"&gt;
              @item.EmailConfirmed
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  </code></pre>
  
  <p>However I am getting an error with this - 
      Argument 2: cannot convert from 'bool' to 'System.Func'    </p>
  
  <p>I would like all the users that are in the role 'admin' to be on one table and all the users that are in the role 'member' to be on another. How do i go about doing this?</p>
  
  <p>Thanks</p>