public async Task JoinToGame([FromBody] JoiningPlayer joiningPlayer) { await _gameService.Join(joiningPlayer); }
public async Task Join(JoiningPlayer joiningPlayer) { await _gameRepository.JoinToGame(joiningPlayer.PlayerId, joiningPlayer.GameId); }