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 }); } }
public Team Get(Expression <Func <Team, bool> > filter) { return(_teamDal.GetById(filter)); }