diff --git a/OctopusSamples.OctoPetShop.ProductService/Controllers/ProductsController.cs b/OctopusSamples.OctoPetShop.ProductService/Controllers/ProductsController.cs index 173384f4..77729646 100644 --- a/OctopusSamples.OctoPetShop.ProductService/Controllers/ProductsController.cs +++ b/OctopusSamples.OctoPetShop.ProductService/Controllers/ProductsController.cs @@ -31,6 +31,8 @@ public async Task> GetByIdAsync(int id) { var pet = await _productRepository.GetById(id); + // Sample change for the demo! + if (pet == null) { return NotFound();