public TeamRace Post(TeamRaceDTO value)
        {
            TeamRace model = new TeamRace()
            {
                RaceId = value.Id_race,
                TeamId = value.Id_team
            };

            return(ITeamRaceRepository.Create(model));
        }
        public TeamRace Put(int id, TeamRaceDTO value)
        {
            TeamRace model = ITeamRaceRepository.Get(id);

            if (value.Id_race != 0)
            {
                model.RaceId = value.Id_race;
            }
            if (value.Id_team != 0)
            {
                model.TeamId = value.Id_team;
            }

            return(ITeamRaceRepository.Update(model));
        }