Created
March 14, 2021 18:36
-
-
Save xximjasonxx/c242e2d06bf2549f222e08be52a43e7f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task<bool> DoWork(IList<SomeItem> items) | |
{ | |
foreach (var item in items.Where(x => x.Id % 2 == 0)) | |
{ | |
await _someRepo.DeleteItem(item.Id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment