Exemplo n.º 1
0
        // Funcion que lista a los jugadores
        public static void listJugadores(Usuario u, Boolean justShowing, Boolean forBienes, Boolean deletingPlayers)
        {
            JugadorBLL     servicioJugador = new JugadorBLL();
            List <Jugador> lst             = servicioJugador.GetJugador(u.Codigo);

            foreach (var jugador in lst)
            {
                if (justShowing)
                {
                    Console.WriteLine(jugador.ToString());
                }
                else if (!justShowing)
                {
                    jugador.ToStringWithId();
                }
            }
            if (!forBienes && !deletingPlayers)
            {
                checkIfContinue(u);
            }
        }