public async Task <string> AuthenticateUserAsync(LoginViewModel model) { await _authenticationService.AuthenticateUserAsync(model); return(await _tokenGenerator.GenerateForUserAsync(model.Email)); }