public ActionResult <string> Get() { try { _logger.LogInformation(string.Format("/healthz: healthcheck heartbeat")); // check the database connection if (_artifactRepo.HealthStatus()) { return(Ok("ok")); } else { return(BadRequest("database error")); } } catch (Exception ex) { _logger.LogError(ex, "Save API /healthz check failed!"); return(BadRequest("Improper API configuration")); } }