summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--RhSolutions.Api/Controllers/ProductsController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/RhSolutions.Api/Controllers/ProductsController.cs b/RhSolutions.Api/Controllers/ProductsController.cs
index eaedf9f..550ea9d 100644
--- a/RhSolutions.Api/Controllers/ProductsController.cs
+++ b/RhSolutions.Api/Controllers/ProductsController.cs
@@ -28,7 +28,7 @@ namespace RhSolutions.Api.Controllers
public IEnumerable<Product> GetProduct(string id)
{
return dbContext.Products
- .Where(p => p.ProductSku!.Equals(id));
+ .Where(p => p.Id.Equals(id));
}
[HttpPost]