public NodeModel GetNodeById(string id)
        {
            NodeModel model = new NodeModel();
            if(!string.IsNullOrEmpty(id))
            {
                Node node = this.nodeService.GetDataById(Convert.ToInt64(id));
                if (node != null)
                {
                    model.NodeId = node.Id;
                    model.WorkflowName = node.Workflow != null ? node.Workflow.Id.ToString() : string.Empty;
                    model.ProcessName = node.Process != null ? node.Process.Id.ToString() : string.Empty;
                    model.SubProcessName = node.SubProcess != null ? node.SubProcess.Id.ToString() : string.Empty;
                    model.ClassificationName = node.Classification != null ? node.Classification.Id.ToString() : string.Empty;
                }
            }

            return model;
        }
 public NodeModel GetNodeId(string workflow, string process, string subProcess, string classification)
 {
     Node node = this.nodeService.GetNode(workflow, process, subProcess, classification);
     NodeModel model = new NodeModel();
     if (node != null)
     {
         model.NodeId = node.Id;
         model.WorkflowName = node.Workflow != null ? node.Workflow.Name : string.Empty;
         model.ProcessName = node.Process != null ? node.Process.Name : string.Empty;
         model.SubProcessName = node.SubProcess != null ? node.SubProcess.Name : string.Empty;
         model.ClassificationName = node.Classification != null ? node.Classification.Name : string.Empty;
     }
     return model;
 }