private async Task AddNewPlayer()
 {
     UserProfile playerProfile = new UserProfile
     {
         Email     = PlayerEmail1,
         FirstName = "Some",
         LastName  = "Some",
         Name      = "someSomeone",
         Password  = Password
     };
     await _catanPlayerBusinessLogic.RegisterPlayer(playerProfile);
 }
Ejemplo n.º 2
0
 public async Task <bool> RegisterUser([FromBody] UserProfile user)
 {
     _logger?.LogDebug($"RegisterUser for user: {user.Id}");
     return(await _catanUserBusinessLogic.RegisterPlayer(user));
 }