예제 #1
0
        public void SaveReportFile(ReportBundle reportBundle, [NotNull] ReportFile reportFile, long userId)
        {
            if (reportFile == null)
            {
                throw new ArgumentNullException(nameof(reportFile));
            }

            var reportFolderPath = _reportFolderPathProvider.GetReportFolderPath(reportBundle, userId);

            _fileWriter.Write(reportFolderPath, reportFile.FileName, reportFile.Content);
        }
예제 #2
0
 private void SaveReportFileInTempStorage(long userId, ReportBundle reportBundle, ReportFile reportFile) =>
 _reportFileStorage.SaveReportFile(reportBundle, reportFile, userId);