private async Task AddLoginAttempt(User user, DateTime time, bool successfulLogin) { var loginAttempt = new UserLoginAttempt { UserId = user.Id, AttemptAt = time, SuccessfulLogin = successfulLogin }; await _client.UserLoginAttempt().InsertOneAsync(loginAttempt).CAF(); }