Await inside a repository for a SELECT request
I was looking at the blazor hero template and in the repository implementation they used
await for FindAsync, ToListAsync, etc. I can't understand why they can't just return the Task from these methods? Is it right to await a response from the DB inside the repository?
2 Replies