Expanding on DavidG's answer for .NET Core 2.1 you would need to user IdentityUser instead of User, as well as you will have to use your context directly.
public async Task> GetUsersAsync()
{
using (var context = new ApplicationDbContext())
{
return await context.Users.ToListAsync();
}
}