public async Task <IActionResult> GetSockets() { try { _Logger.LogDebug(ControllerContext, $"Querying all Sockets!"); return(Ok(await _ISocketRepository.GetAllSocketsAsync())); } catch (Exception ex) { _Logger.LogError(ControllerContext, $"Error Message: {ex.Message}"); return(StatusCode(500, "Internal Server Error.")); } }