Exemple #1
0
 public IActionResult AddRun(Run run)
 {
     if (ModelState.IsValid)
     {
         _runRepo.AddRun(run);
         _runRepo.SaveRun();
         return(Ok(run.RunId));
     }
     else
     {
         return(BadRequest(ModelState));
     }
 }