Skip to content

Instantly share code, notes, and snippets.

@xximjasonxx
Created March 14, 2021 18:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xximjasonxx/c242e2d06bf2549f222e08be52a43e7f to your computer and use it in GitHub Desktop.
Save xximjasonxx/c242e2d06bf2549f222e08be52a43e7f to your computer and use it in GitHub Desktop.
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