Ejemplo n.º 1
0
 public IActionResult GetActualMaterial(string materialName)
 {
     try
     {
         var fs = _materialsService.GetActualMaterial(new MaterialDto {
             materialName = materialName
         });
         return(File(fs, "application/octet-stream", materialName));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }