Exemplo n.º 1
0
        public ActionResult Index()
        {
            ViewBag.Message = "Choose data to stage.";
            var model = new StagingToolsModel {
                R1SM = true, S2Incoming = true, S2IncomingHistory = true, TrackOutgoing = true, TrackOutgoingHistory = true, CleanAllPeople = true, CleanAllAccessHistory = true, CleanAllExternalAppKeys = true
            };

            return(View(model));
        }
Exemplo n.º 2
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));
        }
Exemplo n.º 3
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));
        }