Exemplo n.º 1
0
        public ActionResult ChangePath(int systemId, string path, string arguments)
        {
            bool resultPath = _compilerManager.EditPath(systemId, path);
            bool resultArg  = _compilerManager.EditArguments(systemId, arguments);

            if (resultPath && resultArg)
            {
                TempData["Alert"] = SetAlert.Set("Poprawnie zmieniono scieżkę!", "Sukces", AlertType.Success);
            }
            else
            {
                TempData["Alert"] = SetAlert.Set("Wystąpił błąd!", "Błąd", AlertType.Danger);
            }

            ServerConfig.CompilersSetup();
            return(RedirectToAction("Index"));
        }