Ejemplo n.º 1
0
        public void AddPlayer(string name, string address, string phone, string email)
        {
            Player player = new Player {
                Name = name, Address = address, Phone = phone, Email = email
            };

            //next version, check for player's existence before adding
            //hello hello
            PlayerDAL.GetInstance().Add(player);
        }
Ejemplo n.º 2
0
 public Player GetPlayerByName(string name)
 {
     return(PlayerDAL.GetInstance().GetByName(name));
 }
Ejemplo n.º 3
0
 public List <Player> GetAllPlayers()
 {
     return(PlayerDAL.GetInstance().GetAllPlayers());
 }