public ResponseModel GetUserList()
        {
            ResponseModel objResponseModel = new ResponseModel();
            int           StatusCode       = 0;
            string        statusMessage    = "";
            List <User>   userdetails      = new List <User>();

            try
            {
                string       token        = Convert.ToString(Request.Headers["X-Authorized-Token"]);
                Authenticate authenticate = new Authenticate();
                authenticate = SecurityService.GetAuthenticateDataFromToken(_radisCacheServerAddress, SecurityService.DecryptStringAES(token));

                GraphCaller graphcaller = new GraphCaller();

                userdetails = graphcaller.GetUserList(new GraphService(_connectionSting), authenticate.TenantId, authenticate.UserMasterID);
                StatusCode  =
                    userdetails.Count == 0 ?
                    (int)EnumMaster.StatusCode.RecordNotFound : (int)EnumMaster.StatusCode.Success;
                statusMessage = CommonFunction.GetEnumDescription((EnumMaster.StatusCode)StatusCode);

                objResponseModel.Status       = true;
                objResponseModel.StatusCode   = StatusCode;
                objResponseModel.Message      = statusMessage;
                objResponseModel.ResponseData = userdetails;
            }
            catch (Exception)
            {
                throw;
            }
            return(objResponseModel);
        }
        public ResponseModel GetGraphCountData([FromBody] GraphCountDataRequest GraphCountData)
        {
            ResponseModel objResponseModel = new ResponseModel();
            int           StatusCode       = 0;
            string        statusMessage    = "";
            GraphModal    graphmodalObj    = new GraphModal();

            try
            {
                string       token        = Convert.ToString(Request.Headers["X-Authorized-Token"]);
                Authenticate authenticate = new Authenticate();
                authenticate = SecurityService.GetAuthenticateDataFromToken(_radisCacheServerAddress, SecurityService.DecryptStringAES(token));

                GraphCaller graphcaller = new GraphCaller();

                graphmodalObj = graphcaller.GetGraphCountData(new GraphService(_connectionSting), authenticate.TenantId, authenticate.UserMasterID, GraphCountData);
                StatusCode    = (int)EnumMaster.StatusCode.Success;
                statusMessage = CommonFunction.GetEnumDescription((EnumMaster.StatusCode)StatusCode);

                objResponseModel.Status       = true;
                objResponseModel.StatusCode   = StatusCode;
                objResponseModel.Message      = statusMessage;
                objResponseModel.ResponseData = graphmodalObj;
            }
            catch (Exception)
            {
                throw;
            }
            return(objResponseModel);
        }
        public GraphCallerField(SerializedProperty property)
        {
            _rootProperty    = property;
            _graphProperty   = property.FindPropertyRelative(nameof(GraphCaller.Graph));
            _inputsProperty  = property.FindPropertyRelative(nameof(GraphCaller.Inputs));
            _outputsProperty = property.FindPropertyRelative(nameof(GraphCaller.Outputs));
            _graphCaller     = property.GetObject <GraphCaller>();

            var graphField = new ObjectPickerField(typeof(Graph)).ConfigureProperty(_graphProperty);

            graphField.SetFieldLabel(property.displayName);
            graphField.RegisterCallback <ChangeEvent <Object> >(evt => UpdateVariables(evt.newValue as Graph));

            _inputsList = new ListField
            {
                bindingPath  = _inputsProperty.propertyPath,
                AllowAdd     = false,
                AllowRemove  = false,
                AllowReorder = false,
                Tooltip      = "The input values to set for the Graph"
            };

            _outputsList = new ListField
            {
                bindingPath  = _outputsProperty.propertyPath,
                AllowAdd     = false,
                AllowRemove  = false,
                AllowReorder = false,
                Tooltip      = "The output values to resolve from this Graph"
            };

            Add(graphField);
            Add(_inputsList);
            Add(_outputsList);

            _outputsList.AddToClassList(OutputsUssClassName);
            _inputsList.AddToClassList(InputsUssClassName);

            AddToClassList(UssClassName);
            this.AddStyleSheet(Stylesheet);

            UpdateVariables(_graphProperty.objectReferenceValue as Graph);
        }