public object GetSpecificMaterial(string materialName, int versionOfMaterial) { try { var fs = _materialsService.GetSpecificMaterial(new MaterialDto { materialName = materialName, versionNumber = versionOfMaterial }); return(File(fs, "application/octet-stream", materialName)); } catch (Exception e) { return(BadRequest(e.Message)); } }