public void Remove(Product removableProduct) { _products.DeleteOne(Product => ObjectId.Equals(removableProduct.Id, Product.Id)); }
public void Update(ObjectId id, Product updatedProduct) { _products.DeleteOne(Product => ObjectId.Equals(id, Product.Id)); }
public void Add(Product newProduct) { _products.InsertOne(newProduct); }