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