public object[] ExecuteCommand1(string commandName, string targetMethod, object data)
 {
     try
     {
         object[] result = new object[4];
         result[0] = CCommand.Create(commandName).Execute(data);
         result[1] = targetMethod;
         result[2] = commandName;
         result[3] = data;
         return(result);
     }
     catch (Exception ex)
     {
         // TODO: add logging functionality
         throw;
     }
 }
        public object[] ExecuteCommand(string commandName, string callbackMethod, object data)
        {
            object[] result = new object[2];
            try
            {
                Dictionary <string, object> param = (Dictionary <string, object>)data;
                //string actionView = (string)param["actionView"];
                //Authorize here

                result[0] = CCommand.Create(commandName).Execute(data);
                result[1] = callbackMethod;
            }
            catch (Exception ex)
            {
                // TODO: add logging functionality
                throw;
            }
            return(result);
        }