コード例 #1
0
 public FileResult DownloadFile(int id)
 {
     try
     {
         var(fname, blob) = _uploadService.Download(id);
         return(File(blob, "application/x-msdownload", fname));
     }
     catch (AppException)
     {
         return(null);
     }
 }