예제 #1
0
 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);
 }