Ejemplo n.º 1
0
        public ActionResult Index(string command, StagingToolsModel model)
        {
            ViewBag.Message = command;
            var stage = new Library.DataLoad();

            if (command == "Run")
            {
                stage.Run(model);
            }

            if (command == "Clean")
            {
                stage.Clean(model);
            }

            return(View(model));
        }
Ejemplo n.º 2
0
        public ActionResult Index(string command, StagingToolsModel model)
        {
            ViewBag.Message = command;
            var stage = new Library.DataLoad();

            model.ValidationKey = model.ValidationKey == null
                                ? (ConfigurationManager.GetSection("system.web/machineKey") as MachineKeySection).ValidationKey
                                : model.ValidationKey;

            if (command == "Run")
            {
                stage.Run(model);
            }

            if (command == "Clean")
            {
                stage.Clean(model);
            }

            return(View(model));
        }