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)); }
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)); }