Пример #1
0
        public FTPFileDataListDTO GetFileData(int Id)
        {
            var ftpFileData = _fTPFileDataListRepository.GetFileData(Id);
            FTPFileDataListDTO ftpFileDataModel = Mapper.Map <FTPFileDataList, FTPFileDataListDTO>(ftpFileData);

            return(ftpFileDataModel);
        }
Пример #2
0
        public FileResult DownloadPDF(int PDF_ID)
        {
            FTPFileDataListDTO ftpFile = _fTPFileDataListService.GetFileData(PDF_ID);

            return(File(ftpFile.FileData, "application/pdf", ftpFile.FileName));
        }
Пример #3
0
        public FileResult DownloadXML(int XML_ID)
        {
            FTPFileDataListDTO ftpFile = _fTPFileDataListService.GetFileData(XML_ID);

            return(File(ftpFile.FileData, "application/xml", ftpFile.FileName));
        }