public ActionResult TimerControl() { _APPTIMER = (ServerTimer)(HttpContext.ApplicationInstance).Application["ServerTimer"]; if (_APPTIMER.IsRunning) { _APPTIMER.StopTask(); } else { _APPTIMER.StartTask(); } return(View("DashBoard", "~/Views/Shared/_AdminLayout.cshtml", null)); }