parse issue

This commit is contained in:
Robert Raboud 2018-02-01 14:37:11 -05:00
parent 4072c0c5fc
commit 8ce8560214

View File

@ -30,9 +30,10 @@ namespace Microsoft.eShopOnContainers.Services.Basket.API.IntegrationEvents.Even
private async Task UpdatePriceInBasketItems(int productId, decimal newPrice, decimal oldPrice, CustomerBasket basket)
{
var itemsToUpdate = basket?.Items?.Where(x => int.Parse(x.ProductId) == productId).ToList();
string match = productId.ToString();
var itemsToUpdate = basket?.Items?.Where(x => x.ProductId == match).ToList();
if (itemsToUpdate != null)
if (itemsToUpdate != null)
{
foreach (var item in itemsToUpdate)
{