void IncreaseAmount(string itemId, int currentAmount) { if (ItemId == itemId) { Amount++; ItemPresenter.SetAmount(Amount); } }
public void DecreaseAmount(int amount) { Amount -= amount; if (Amount > 0) { ItemPresenter.SetAmount(Amount); } else { RemoveItem(); } }