示例#1
0
 public async Task <IActionResult> GetTask([FromRoute] string name)
 {
     try
     {
         return(File(_storage.GetFileStream(name), "application/zip"));
     }
     catch (Exception err)
     {
         return(StatusCode(404));
     }
 }