Beispiel #1
0
 public IActionResult Create([FromBody] RaceSponsorship rsponsorship)
 {
     if (ModelState.IsValid)
     {
         Guid obj = Guid.NewGuid();
         rsponsorship.id = obj.ToString();
         _dataAccessProvider.AddRaceSponsorshipRecord(rsponsorship);
         return(Ok());
     }
     return(BadRequest());
 }