Fix search product by id
This commit is contained in:
parent
f23552a000
commit
b7e4bf6887
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user