예제 #1
0
        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));
        }