public PlayerListViewModel(PlayerListResponse playerList)
        {
            Players = playerList.Players
                      .Select(p => new PlayerListItemViewModel(p))
                      .ToList( );

            SortByNameAsc( );
        }
        public IActionResult All(bool?isActive)
        {
            var players = _playerService.GetList(isActive.ToActiveStatus( ));

            var response = new PlayerListResponse(Mapper.Map <List <PlayerListItemResponse> >(players));

            return(Ok(response));
        }
    private void createPlayerServer(object sender, MessageEventArgs e)
    {
        Debug.Log("reciviendo respuesta");
        PlayerListResponse response = PlayerListResponse.CreateFromJSON(e.Data);

        foreach (var user in response.users)
        {
            UnityThread.executeInUpdate(() =>
            {
                GameObject p = Instantiate(multiPlayerPrefact, new Vector3(-8, -1, 0), Quaternion.identity);
                MultiPlayerController con = p.GetComponent <MultiPlayerController>();
                con.init(user);
            });
        }
        NetworkingController networking = GameMaster.getNetworkingController();

        networking.stopListenOnMessage(createPlayerServer, responseName);
    }