public FTPFileDataListDTO GetFileData(int Id) { var ftpFileData = _fTPFileDataListRepository.GetFileData(Id); FTPFileDataListDTO ftpFileDataModel = Mapper.Map <FTPFileDataList, FTPFileDataListDTO>(ftpFileData); return(ftpFileDataModel); }
public FileResult DownloadPDF(int PDF_ID) { FTPFileDataListDTO ftpFile = _fTPFileDataListService.GetFileData(PDF_ID); return(File(ftpFile.FileData, "application/pdf", ftpFile.FileName)); }
public FileResult DownloadXML(int XML_ID) { FTPFileDataListDTO ftpFile = _fTPFileDataListService.GetFileData(XML_ID); return(File(ftpFile.FileData, "application/xml", ftpFile.FileName)); }