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