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