public async Task RemoveAsync(string id) { await EntityCollection.DeleteOneAsync(e => e.Id == id); }
public async Task RemoveAsync(T entity) { await EntityCollection.DeleteOneAsync(e => e.Id == entity.Id); }