Пример #1
0
        public async Task DeleteBook(string id)
        {
            var filter = Builders <Book> .Filter.Eq(x => x.Id, id);

            await _repository.GetCollection().DeleteOneAsync(filter);
        }