public GetUploadApplicationFilesOutput GetUploadApplicationFileById(GetUploadApplicationFilesInput input) { var uploadApplicationFile = _uploadApplicationFilesManager.GetUploadedApplicationFileById(input.Id); var output = Mapper.Map <Models.UploadApplicationFiles, GetUploadApplicationFilesOutput>(uploadApplicationFile); return(output); }
public FileResult DownLoadFile(int id) { var getUploadedFileInput = new GetUploadApplicationFilesInput() { Id = id }; var uploadedFileById = _uploadApplicationFilesAppService.GetUploadApplicationFileById(getUploadedFileInput); return(File(uploadedFileById.FileData, uploadedFileById.Type, uploadedFileById.FileName)); }