public async Task Put([FromBody] IDictionary <string, string> import) { var criteria = new ImportCriteria() { Import = import }; await _importExportManager.ImportAll(criteria); }
public async Task ImportAll(ImportCriteria criteria) { _logger.LogDebug("Importing all information into data storage."); _logger.LogTrace("Keys: {Keys}", $"[{string.Join(", ", criteria.Import.Keys)}]"); var query = new ImportQuery() { Import = criteria.Import }; await _importExportAccessor.ImportAll(query); _logger.LogDebug("Successfully imported all information into data storage."); }