//private static Repository repo;
        //static Repository() {
        //    repo = new Repository();
        //}
        //public static Repository Current {
        //    get { return repo; }
        //}
        public Repository()
        {
            Product[] products = new Product[] {
                new Product {ProductID = 1, Name = "Kayak", Price = 275M },
                new Product {ProductID = 2, Name = "Lifejacket", Price = 48.95M },
                new Product {ProductID = 3, Name = "Soccer Ball", Price = 19.50M },
                new Product {ProductID = 4, Name = "Thinking Cap", Price = 16M },
            };

            data = new Dictionary<int, Product>();

            foreach (Product prod in products)
            {
                data.Add(prod.ProductID, prod);
            }
        }
 public Product SaveProduct(Product newProduct)
 {
     newProduct.ProductID = data.Keys.Count + 1;
     return data[newProduct.ProductID] = newProduct;
 }