From 424bb2a70c37981d780c6e053534f4d209dbc89b Mon Sep 17 00:00:00 2001 From: Rob Pearson Date: Tue, 20 Feb 2024 23:01:40 +0530 Subject: [PATCH] FIN-4 Updating feature flags in microservice --- .../Controllers/ProductsController.cs | 2 ++ 1 file changed, 2 insertions(+) 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();