public Team ReadTeam(int id) { TeamDto teamDto = dal.GetTeamById(id); return(new Team() { IdTeam = teamDto.IdTeam, Name = teamDto.Name, Owner = teamDto.Owner }); }
public Team ReadTeam(int id) { ITeamDal dal = PlayerFactory.GetTeamDal(); TeamDto teamDto = dal.GetTeamById(id); return(new Team() { IdTeam = teamDto.IdTeam, Name = teamDto.Name, Owner = teamDto.Owner }); }