public async Task SubmitNotificationAsync(Notification notification) { _context.Attach(notification); notification.NotificationStatus = NotificationStatus.Notified; notification.SubmissionDate = DateTime.UtcNow; await _notificationRepository.SaveChangesAsync(NotificationAuditType.Notified); if (notification.ClinicalDetails.IsPostMortem != true) { await CreateTreatmentEventNotificationStart(notification); } await _alertService.AutoDismissAlertAsync <DataQualityDraftAlert>(notification); }