public bool Get([FromUri] int pTaskId) { var _srcs = new ScriptsEngineLib.ScriptsEngine(Properties.Settings.Default.ServiceUrl, Properties.Settings.Default.PAT); _srcs.Debug = Properties.Settings.Default.Debug; if (_srcs.SetCustomSettings(Properties.Settings.Default.CustomSettingsJson)) { _srcs.RunTaskScript(pTaskId); } return(true); }
public ActionResult RunConfirmed(int id) { var _srcs = new ScriptsEngineLib.ScriptsEngine(Properties.Settings.Default.ServiceUrl, Properties.Settings.Default.PAT); _srcs.Debug = Properties.Settings.Default.Debug; if (_srcs.SetCustomSettings(Properties.Settings.Default.CustomSettingsJson)) { _srcs.RunTaskScript(id); } return(RedirectToAction("Index", "RunHistories")); }