So I tried to add async methods to my routes and to the interfaces, repositories etc and I coded everything properly. Everything looks great but when I try to run the app I get that error:
Error CS1061: 'DbSet<Hotel>' does not contain a definition for 'ToListAsync' and no accessible extension method 'ToListAsync' accepting a first argument of type 'DbSet<Hotel>' could be found (are you missing a using directive or an assembly reference?) (CS1061)
I downloaded EF Core package and even hard coded most of the things since .NET does not detect anything related to async methods.
Do you know why I get this error? I could not find any solutions. EDIT: I'm on a Mac btw.