public async Task UpdateAsync(MrGreenUser user) { await _users.ReplaceOneAsync(u => u.Id.Equals(user.Id), user.AsDatabaseModel()); }
public async Task AddAsync(MrGreenUser user) { await _users.InsertOneAsync(user.AsDatabaseModel()); }
public async Task UpdateAsync(MrGreenUser user) { await _users.ReplaceOneAsync(u => u.Id.Equals(user.Id), user.AsDatabaseModel()); }
public async Task AddAsync(MrGreenUser user) { await _users.InsertOneAsync(user.AsDatabaseModel()); }