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