Example #1
0
        public byte[] ExportDocumentsToExcel()
        {
            var webpages = _documentService.GetAllDocuments <Webpage>().ToList();
            var package  = _exportDocumentsService.GetExportExcelPackage(webpages);

            return(_exportDocumentsService.ConvertPackageToByteArray(package));
        }
Example #2
0
        public byte[] ExportDocumentsToExcel()
        {
            var webpages = _webpageRepository.Query().ToList();
            var package  = _exportDocumentsService.GetExportExcelPackage(webpages);

            return(_exportDocumentsService.ConvertPackageToByteArray(package));
        }