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

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