public async Task DeleteBook(string id) { var filter = Builders <Book> .Filter.Eq(x => x.Id, id); await _repository.GetCollection().DeleteOneAsync(filter); }
public async Task DeleteBook(string id) { var filter = Builders <Book> .Filter.Eq(x => x.Id, id); await _repository.GetCollection().DeleteOneAsync(filter); }