title: 'IQueryable<ApplicationUser>' does not contain a definition for 'FindAsync'
body: <p>I am creating an api for GET users by id.</p>
  <p>But below error occurs.</p>
  <pre><code>'IQueryable&lt;ApplicationUser&gt;' does not contain a definition for 'FindAsync' and no accessible extension method 'FindAsync' accepting a first argument of type 'IQueryable&lt;ApplicationUser&gt;' could be found (are you missing a using directive or an assembly reference?)
  
  </code></pre>
  <p>UsersController.cs</p>
  <pre><code>using System.Threading.Tasks;
  using fublight_server.Authentication;
  using Microsoft.AspNetCore.Identity;
  using Microsoft.AspNetCore.Mvc;
  using Microsoft.EntityFrameworkCore;
  using Microsoft.Extensions.Configuration;
  
  namespace fublight_server.Controllers
  {
      [Route(&quot;api/[controller]&quot;)]
      [ApiController]
      public class UsersController : Controller
      {
          private readonly UserManager&lt;ApplicationUser&gt; _userManager;
          private readonly IConfiguration _configuration;
  
          public UsersController(IConfiguration configuration, UserManager&lt;ApplicationUser&gt; userManager)
          {
              _userManager = userManager;
              _configuration = configuration;
          }
  
          [HttpGet]
          public async Task&lt;IActionResult&gt; GetUsers()
          {
              //This should be the list of users
              var users = await _userManager.Users.ToListAsync();
              return Json(users);
          }
  
          [HttpGet(&quot;{id}&quot;)]
          public async Task&lt;ActionResult&lt;ApplicationUser&gt;&gt; GetUsersById(int id)
          {
              //This should be the list of users
              return await _userManager.Users.FindAsync(id); &lt;-------------this line shows error
          }
  
      }
  
  }
  </code></pre>