0
0

Fix search product by id

This commit is contained in:
Sergey Chebotar 2023-05-12 07:45:27 +03:00
parent f23552a000
commit b7e4bf6887

View File

@ -28,7 +28,7 @@ namespace RhSolutions.Api.Controllers
public IEnumerable<Product> GetProduct(string id) public IEnumerable<Product> GetProduct(string id)
{ {
return dbContext.Products return dbContext.Products
.Where(p => p.ProductSku!.Equals(id)); .Where(p => p.Id.Equals(id));
} }
[HttpPost] [HttpPost]