public IActionResult PostTournamentSC([FromBody] TournamentSc tournamentSc) { try { if (tournamentSc != null) { _logger.LogInformation("API Request hit: INSERT TournamentSc : "); var result = _tournamentRepository.AddTournamentSC(tournamentSc); if (result == 0) { return(Ok("{\"status\": \"Success\"}")); } else { _logger.LogInformation("API Request (INSERT TournamentSc : ) not committed"); return(NotFound("Failed: INSERT could not commit")); } } else { _logger.LogInformation("API Request hit (INSERT TournamentSc) with null entry"); return(BadRequest("Failed: null entry")); } } catch (Exception e) { _logger.LogError("API Request (INSERT TournamentSc) FAILED: ", e); return(BadRequest("Failed")); } }