From b7e4bf6887251b8d535392c9afc48ba35aa37d38 Mon Sep 17 00:00:00 2001 From: Sergey Chebotar Date: Fri, 12 May 2023 07:45:27 +0300 Subject: [PATCH] Fix search product by id --- RhSolutions.Api/Controllers/ProductsController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 GetProduct(string id) { return dbContext.Products - .Where(p => p.ProductSku!.Equals(id)); + .Where(p => p.Id.Equals(id)); } [HttpPost]