private async Task CreateMBovisAlert(INotificationForDrugResistanceImport notification) { var mBovisAlert = new MBovisAlert { NotificationId = notification.NotificationId }; await _alertService.AddUniqueAlertAsync(mBovisAlert); }
public async Task CreateOrDismissMBovisAlert(INotificationForDrugResistanceImport notification) { if (notification.NotificationStatus != NotificationStatus.Closed && notification.IsMBovis && !notification.IsMBovisQuestionnaireComplete) { await CreateMBovisAlert(notification); } else { await _alertService.DismissMatchingAlertAsync <MBovisAlert>(notification.NotificationId); } }
public async Task CreateOrDismissMdrAlert(INotificationForDrugResistanceImport notification) { if (notification.NotificationStatus != NotificationStatus.Closed && notification.IsMdr && !notification.MdrDetailsEntered) { await CreateMdrAlert(notification); } else { await _alertService.DismissMatchingAlertAsync <MdrAlert>(notification.NotificationId); } }