Exemple #1
0
        public IResponsePackage <T> CreateResponsePackage <T>(T data)
        {
            IResponsePackage <T> response = this.CreateResponsePackage <T>();

            response.Data = data;
            return(response);
        }
Exemple #2
0
        public IResponsePackage <T> CreateResponsePackage <T>(Exception ex)
        {
            IResponsePackage <T> response = this.CreateResponsePackage <T>();

            response.Code    = -1;
            response.Message = ex.Message;
            return(response);
        }
        public ActionResult ExecuteQueryAction(int formID, int actionID, Dictionary <int, string> operandID_Value)
        {
            ActionScope scope = this.InitializeScope(formID, actionID, operandID_Value);

            scope.Action.ExecuteAction(scope);
            IResponsePackage <ActionResultScope> response = this.CreateResponsePackage(scope._ResultScope);

            return(Json(response, JsonRequestBehavior.AllowGet));
        }