public IList<Article> Import(params string[] files) { ImportData importData = new ImportData(files); var result = Import(importData); return result; }
public IList<Article> Import(ImportData importData) { if (ImportConfiguration == null) throw new NullReferenceException("No import configuration"); _currentDestination = CreateTemporaryFolder(); if (ImportConfiguration.IsArchive) { return ImportArchives(importData.FilePathes); } else { return ImportFiles(importData.FilePathes, true); } }