public async Task <IActionResult> HealthPing() { var netCoreVer = Environment.Version; var runtimeVer = System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription; try { await _healthCheckService.RunHealthCheck(); return(Ok($"Server is up and running. .NET Core Version : {netCoreVer}, Runtime Version : {runtimeVer} ")); } catch (Exception ex) { return(NotFound($"HealthCheck Failed: {ex.Message}")); } }