Exemple #1
0
        public Player Buscar(string user, string pass)
        {
            playerDAO = new PlayerDAO();
            Players datos  = playerDAO.BuscarUsuario(user, pass);
            Player  player = new Player();

            player.Id        = datos.Id;
            player.Pass      = datos.Pass;
            player.Nombre    = datos.Nombre;
            player.Apellido  = datos.Apellido;
            player.Efectivo  = Convert.ToInt32(datos.Efectivo);
            player.Email     = datos.Email;
            player.Fichas    = Convert.ToInt32(datos.Fichas);
            player.Jugadas   = datos.Jugadas;
            player.Victorias = datos.Victorias;
            player.Avatar    = datos.Avatar;
            player.User      = datos.User;

            return(player);
        }
        public Player Buscar(string user, string pass)
        {
            playerDAO = new PlayerDAO();
            Players datos = playerDAO.BuscarUsuario(user, pass);
            Player player = new Player();
            player.Id = datos.Id;
            player.Pass = datos.Pass;
            player.Nombre = datos.Nombre;
            player.Apellido = datos.Apellido;
            player.Efectivo = Convert.ToInt32(datos.Efectivo);
            player.Email = datos.Email;
            player.Fichas = Convert.ToInt32(datos.Fichas);
            player.Jugadas = datos.Jugadas;
            player.Victorias = datos.Victorias;
            player.Avatar = datos.Avatar;
            player.User = datos.User;

            return player;
        }