예제 #1
0
 private async Task SaveNotificationMessage(int runId, string legacyId, string message,
                                            LogMessageLevel messageLevel)
 {
     var dbMessage = new LegacyImportNotificationLogMessage
     {
         LegacyImportMigrationRunId = runId,
         OldNotificationId          = legacyId,
         Message         = message,
         LogMessageLevel = messageLevel
     };
     await _notificationImportRepository.AddLegacyImportNotificationLogMessage(dbMessage);
 }
        public async Task AddLegacyImportNotificationLogMessage(LegacyImportNotificationLogMessage message)
        {
            await _context.LegacyImportNotificationLogMessage.AddAsync(message);

            await _context.SaveChangesAsync();
        }