public void AddRace(int year)
 {
     RaceDataAccess.SaveRace(new Race
     {
         Status = RaceStatus.Pending,
         Year   = year
     });
 }
 public Race GetRaceById(int id)
 {
     return(RaceDataAccess.GetRaceById(id));
 }
 public List <Race> GetAllRaces()
 {
     return(RaceDataAccess.GetRaces());
 }
 public void StartTheRace(int id)
 {
     RaceDataAccess.StartTheRace(id);
     VehiclesCalculations.VehiclesInRaceSimulation(id);
 }