Await Linq Expression
Where can I await this to convert IEnumerable<Task<EmployeeView>> to IEnumerable<Employee>?
![](https://utfs.io/f/04ce241d-ebc1-45f3-95f0-a4a5573950b0-4pl4mu.png)
8 Replies
this is not working
![](https://utfs.io/f/e5496fa6-c6d6-40bf-8179-cba85cc1b133-4pl4mu.png)
and this is also not working
![](https://utfs.io/f/57f7152a-5a08-4c3b-8ecb-9a214a4eddf5-4pl4mu.png)
await Task.WhenAll(employees.Select(async x => new ....))
Thanks!
This is a horribly inefficient way to do that i think, depending on ur schema
Forget
N+1
, this is more like 3N+1
? š