// GET api/Race/RaceStatus/1 public RaceStatisticModel RaceStatus(int id) { return(RaceDataLayer.GetRaceStatus(id)); }
public async void StartRace(int id) { await RaceDataLayer.StartRaceAsync(id); }
// POST api/Race/AddVehicleToRace public VehicleModel AddVehicleToRace([FromBody] VehicleModel vehicle) { return(RaceDataLayer.AddVehicleToRace(vehicle)); }
// DELETE api/Race/5 public void Delete(int id) { RaceDataLayer.DeleteVehicleFromTheRace(id); }
// POST: api/Race/CreateRace public RaceModel CreateRace([FromBody] RaceModel race) { return(RaceDataLayer.CreateRace(race)); }