title: Find users who have a specific role
body: <p>My code is: </p>
  
  <pre><code>public async Task&lt;ActionResult&gt; Index()
  {
      var teaching = db.Teachings.Include(d =&gt;d.Course).Include(d=&gt;d.Group).Include(d =&gt; d.User);
  
      return View(await teaching.ToListAsync());
  }
  </code></pre>
  
  <p>And I want to know how can I filter some roles, I mean, how can I filter only the users who has an specific role, if I can.</p>
  
  <p>I think a possible solution could be <code>....Include(d =&gt; d.Users).Where(...)</code>, but I don't know how to compare the role of the user that I am taking, with a specific role.</p>
  
  <p>My roles are teacher, admin or student.</p>
  
  <p>In conclusion, filter only the users whose role is "teacher" .</p>