public async Task RemoveById(string id) { var filter = Builders <SearchTerm> .Filter.Eq("_id", id); await collection.DeleteOneAsync(filter); }
public override async Task Delete(T entity) { await collection.DeleteOneAsync(x => x.Id == entity.Id); }
public async Task RemoveById(string id) { var filter = Builders <SearchTerm> .Filter.Eq("_id", id); await collection.DeleteOneAsync(filter); }
public override async Task Delete(T entity) { await collection.DeleteOneAsync(x => x.Id == entity.Id); }