public IActionResult GetEndpointNames() { var endpointNames = _endpointService.GetEndpointNames(); if (endpointNames != null) { return(Ok(endpointNames)); } return(NotFound(new CustomErrorVm() { CustomErrorMessage = "No endpoints found." })); }