C#C
C#3y ago
4 replies
W1tchErr

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?
image.png
Was this page helpful?