Beispiel #1
0
        public IActionResult DownloadFile(string fileName)
        {
            Stream stream = _downloadFile.GetFile(fileName);

            if (Object.Equals(stream, null))
            {
                return(NotFound());
            }

            return(File(stream, "application/octet-stream", fileName));
        }