示例#1
0
        public GetUploadApplicationFilesOutput GetUploadApplicationFileById(GetUploadApplicationFilesInput input)
        {
            var uploadApplicationFile = _uploadApplicationFilesManager.GetUploadedApplicationFileById(input.Id);
            var output = Mapper.Map <Models.UploadApplicationFiles, GetUploadApplicationFilesOutput>(uploadApplicationFile);

            return(output);
        }
示例#2
0
        public FileResult DownLoadFile(int id)
        {
            var getUploadedFileInput = new GetUploadApplicationFilesInput()
            {
                Id = id
            };

            var uploadedFileById = _uploadApplicationFilesAppService.GetUploadApplicationFileById(getUploadedFileInput);


            return(File(uploadedFileById.FileData, uploadedFileById.Type, uploadedFileById.FileName));
        }