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

            return(ftpFileDataModel);
        }
Exemple #2
0
        public FileResult DownloadPDF(int PDF_ID)
        {
            FTPFileDataListDTO ftpFile = _fTPFileDataListService.GetFileData(PDF_ID);

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

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