public ActionResult Index(string demoScriptFileName) { string demoName = demoScriptFileName; //ViewBag.Message = "Starting " + demoName + " demo..."; DemoLaunchingClient client = new DemoLaunchingClient(); ViewBag.Message = client.LaunchRemoteProcess("Demos\\" + demoName); return View(); }
public ActionResult StopDemo() { if (Request.HttpMethod == "POST") { DemoLaunchingClient client = new DemoLaunchingClient(); ViewBag.Message = client.StopDemo(); } return View("Index"); }