예제 #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
 public ActionResult Restart(string returnUrl)
 {
     DnaConfig.Restart();
     return(Redirect(returnUrl));
 }