public async Task <List <Notification> > AddLinkedNotificationsAsync(List <Notification> notifications)
        {
            if (notifications.Count > 1)
            {
                var group = new NotificationGroup();
                _context.NotificationGroup.Add(group);
                notifications.ForEach(n => n.Group = group);
            }

            _context.Notification.AddRange(notifications);
            _context.AddAuditCustomField(CustomFields.AuditDetails, NotificationAuditType.Imported);
            await _context.SaveChangesAsync();

            return(notifications);
        }
 public void AddSystemUserToAudits()
 {
     _context.AddAuditCustomField(CustomFields.OverrideUser, AuditService.AuditUserSystem);
 }
 protected HangfireJobContext(NtbsContext auditDbContext)
 {
     auditDbContext.AddAuditCustomField(CustomFields.OverrideUser, AuditService.AuditUserSystem);
 }