Example #1
0
 public IActionResult Save(Athlete athlete)
 {
     if (athlete.Id >= 1)
     {
         _athleteService.Update(athlete);
     }
     else
     {
         _athleteService.Add(athlete);
     }
     return(Ok(_athleteService.SaveAll()));
 }