public void DeleteProduct(string id) { MongodbFunctions mongo = new MongodbFunctions(); ObjectId objID = new ObjectId(id); mongo.DeleteProduct(objID); }