コード例 #1
0
        public IActionResult Get()
        {
            // Setting the required options on the server side
            var requestParams = StiAngularDesigner.GetRequestParams(this);

            if (requestParams.Action == StiAction.Undefined)
            {
                var options = new StiAngularDesignerOptions();
                return(StiAngularDesigner.DesignerDataResult(requestParams, options));
            }

            return(StiAngularDesigner.ProcessRequestResult(this));
        }
コード例 #2
0
        public IActionResult Post()
        {
            var requestParams = StiAngularDesigner.GetRequestParams(this);

            if (requestParams.ComponentType == StiComponentType.Designer)
            {
                switch (requestParams.Action)
                {
                case StiAction.GetReport:
                    return(GetReport());

                case StiAction.SaveReport:
                    return(SaveReport());
                }
            }

            return(StiAngularDesigner.ProcessRequestResult(this));
        }