public IActionResult GetApplicationInsightsInstrumentationKey() { try { return(Ok(new { key = _crudService.GetAppInsightskey() })); } catch (Exception e) { _logger.LogError("Get AppInsightsKey Failed " + e); return(BadRequest(e.Message)); } }