Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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