public Task SaveChangesAsync()
 {
     foreach (var newProduct in NewProductsToAdd)
     {
         var id = _products.Values.Max(p => p.ID) + 1;
         _products[id] = newProduct;
         newProduct.ID = id;
     }
     NewProductsToAdd.Clear();
     return(Task.CompletedTask);
 }
 public void Add(Product product)
 {
     NewProductsToAdd.Add(product);
 }