private void EnterInput_Product() { foreach (Product product in Model.Instance.Products) { if (InputForBasket.Equals(product.ProductId)) { undoRedoController.AddAndExecute(new AddProductToBasketCommand(Basket, product, 1)); return; } } }
private void EnterInput_User() { foreach (User user in Model.Instance.Users) { if (InputForBasket.Equals(user.UserID)) { CheckOutBasket(); return; } } }