Esempio n. 1
0
 public StatusCodeResult PostCoach([FromBody] Coach coach)
 {
     try
     {
         _coachService.Add(coach);
         return(new StatusCodeResult(200));
     }
     catch (Exception)
     {
         return(new BadRequestResult());
     }
 }