[HttpGet] public async Task<IActionResult> DownloadFile() { Stream file = ; // Get Data Stream of File return File(file, "application/octet-stream", $"{file.Name}.{file.Extension}"); }