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