public static void ShowProducts(Store store, Product product) { IEnumerable <Product> products = product.GetAllProducts(store); for (int i = 0; i < products.Count(); i++) { Product p1 = products.ElementAt(i); p1.PrintProduct(store); } Console.WriteLine(); }