private IFileInfo exportFile(ExportFile sourceFile) { IFileInfo exportedFile; //creates the Import File if (sourceFile.Data.DoxisUser.Equals("eml")) { exportedFile = _fileHandler.ExportEmlFile(sourceFile.File, ExportModel.ImportDirectory); } else { exportedFile = _fileHandler.ExportZipFile(sourceFile.File, ExportModel.ImportDirectory); } Log.Logger.Info($"File: {sourceFile.File.Name} imported to Import-Directory"); return(exportedFile); }