public virtual IActionResult PostEndpointOperationForClient(
            [FromRoute] Guid clientUid,
            [FromRoute] Guid endpointUid,
            [FromRoute] string operation)
        {
            if ((clientUid == Guid.Empty) ||
                (endpointUid == Guid.Empty) ||
                (string.IsNullOrEmpty(operation)))
            {
                return(StatusCode((int)HttpStatusCode.BadRequest));
            }

            operation = operation.ToLower();

            switch (operation)
            {
            case "enable":
                if (EndpointManager.TryEnable(endpointUid, out EndpointInformation enabledEndpoint))
                {
                    return(StatusCode((int)HttpStatusCode.OK, enabledEndpoint));
                }
                break;

            case "disable":
                if (EndpointManager.TryDisable(endpointUid, out EndpointInformation disabledEndpoint))
                {
                    return(StatusCode((int)HttpStatusCode.OK, disabledEndpoint));
                }
                break;
            }

            // unknown operation
            return(StatusCode((int)HttpStatusCode.BadRequest));
        }