I am using asp.net MVC-5 with EF-6, and I am not sure if using await + ToListAsync is valid. For example, I have the following repository method which returns a
ToListAsync
Actually there is no problem because you are awating the ToListAsync() not the getAllScanEmailTo().
ToListAsync()
getAllScanEmailTo()
EDIT: To see how async-await pattern is working you can see this link. Here is a usefull image from there