public DataModel Drop(DataModel model) //TO DO { database.DropCollection(model.getCollectionName()); return new DataModel() { operationSuccesfull = true }; }
private IMongoCollection<BsonDocument> getMongoCollection(DataModel model) => database.GetCollection<BsonDocument>(model.getCollectionName());