private async Task UpdateTriggers(List <UserNotification> users) { var triggersToUpdate = users.Where(x => !x.TriggerInfo.HasBeenHit).Select(x => x.TriggerInfo.Id).ToArray(); await _triggerRepository.UpdateTriggersThatHaveBeenHit(triggersToUpdate); }