public void Participate(int carId, int raceId) { Race race = races.Find(r => r.Id == raceId); if (!garage.ParkedCars.Exists(c => c.Id == carId) && !race.IsFinished) { Car car = FindCar(carId); race.AddCars(car); } }