public IEnumerable <Team> GetAll() { IEnumerable <TeamDTO> tDTOList = _teamContext.GetAll(); List <Team> teamList = new List <Team>(); foreach (var tDTO in tDTOList) { Team t = BuildTeamModel(tDTO); teamList.Add(t); } return(teamList); }
public List <Team> GetAll() { return(context.GetAll()); }