Beispiel #1
0
 public IActionResult Create([FromBody] Race race, string token)
 {
     if (ModelState.IsValid)
     {
         Guid obj = Guid.NewGuid();
         race.id_race = obj.ToString();
         _dataAccessProvider.AddRaceRecord(race, token);
         return(Ok());
     }
     return(BadRequest());
 }