public async Task <IActionResult> DeleteNode(int id)
        {
            var domainNode = await _nodeRepo.SelectNodeAsync(id);

            if (domainNode == null)
            {
                return(NotFound());
            }

            domainNode.NodeStatus = NodesStatusValues.Deleted;
            domainNode.HasEdits   = true;
            var deletedNode = await _nodeRepo.DeleteNodeAsync(domainNode);

            // if delete fails (null return) we shoud return a 500 server error from Startup.cs
            if (deletedNode == null)
            {
                throw new Exception($"Failed to delete Node {id} from DataStore.");
            }

            _logger.LogInformation(LogEvents.RemoveNode, "DELETED node {a}.", id);
            // if deleted OK there was success but nothign to return (204 no content)
            return(NoContent());
        }