one simple question. I found some methods with this \"logic\" and \"architecture\".
public async Task FindAsync(params object[] keys)
{
return await
If you're calling this method like this:
await FindAsync(); // this method waits for the task to complete
Then it doesn't make any sense to return await inside this method, you can just change it to:
public Task<T> FindAsync(params object[] keys)
{
return this.context.FindAsync(keys); // Start and return the task
}
Then the caller awaits the task to Complete.