コード例 #1
0
        public ActionResult Restart()
        {
            try
            {
                DnaConfig.Restart();

                if (!Request.IsAjaxRequest())
                {
                    return(Redirect("~/home/" + System.Threading.Thread.CurrentThread.CurrentUICulture.Name + "/default.html"));
                }
                else
                {
                    return(Content("OK"));
                }
            }
            catch (Exception e)
            {
                if (!Request.IsAjaxRequest())
                {
                    return(Redirect("~/home/" + System.Threading.Thread.CurrentThread.CurrentUICulture.Name + "/default.html"));
                }
                else
                {
                    return(Content("OK"));
                }
            }
        }
コード例 #2
0
ファイル: SysController.cs プロジェクト: mythocalos/dotnetage
 public ActionResult Restart(string returnUrl)
 {
     DnaConfig.Restart();
     return(Redirect(returnUrl));
 }