public void GetPlayers(int id)
        {
            ITeamDal dal = PlayerFactory.GetTeamDal();

            foreach (var a in dal.GetById(id))
            {
                players.Add(new Player()
                {
                    LastName  = a.LastName,
                    FirstName = a.FirstName
                });
            }
        }
示例#2
0
 public Team Get(Expression <Func <Team, bool> > filter)
 {
     return(_teamDal.GetById(filter));
 }