Generally, things will be asynchronous in the controller class. Now I have a service, which has the DbContext through Dependency Injection. This is how it looks like: