Пример #1
0
        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);
        }