Ejemplo n.º 1
0
        public async Task <ActionResult> Get(string fileName)
        {
            var result = await _fileUploadService.DownloadFile(fileName);

            if (result.IsSuccess)
            {
                return(File(result.MemoryStream, result.ContentType, result.FileName));
            }
            return(Ok(new
            {
                result.Message,
                result.IsSuccess
            }));
        }