public void GetList(Player player)
        {
            List <Player> list = new List <Player> {
                player
            };
            var query = _playerDal.GetList(list);

            foreach (var players in query)
            {
                Console.WriteLine("Player ID  : " + players.PlayerId);
                Console.WriteLine("Player Name : " + players.PlayerName);
                Console.WriteLine("Player Surname : " + players.PlayerSurname);
                Console.WriteLine("Player Date of birth : " + players.DateofBirth);
                Console.WriteLine("Player Balance : " + players.Balance);
                Console.WriteLine();
            }
            ;
        }
 public List <Player> GetList(Expression <Func <Player, bool> > filter = null)
 {
     return(_playerDal.GetList(filter));
 }
Ejemplo n.º 3
0
 public List <Player> GetAll()
 {
     return(_playerDal.GetList(x => !x.IsDeleted).OrderByDescending(x => x.CreatedDate).ToList());
 }