public void Edit(string id, string title, string author) { var update = Builders <Book> .Update .Set("Title", title) .Set("Author", author); _database.UpdateOne(Book.CollectionName, new ObjectId(id), update); }