Beispiel #1
0
        public void DeleteProduct(Product productToDelete)
        {
            if (productToDelete == null)
            {
                throw new Exception(NoProductSelectedToDeleteMessage);
            }

            ProductsInShop.Remove(productToDelete);
        }
Beispiel #2
0
 public void DeleteProduct(Product productToDelete)
 {// ENKEL BINNEN DE ACCOLADES VAN DEZE METHODE MOGEN AANPASSINGEN GEBEUREN
     ProductsInShop.Remove(productToDelete);
 }