ITimeU.Controllers.TimerController.Stop C# (CSharp) Method

Stop() public method

Stops this instance.
public Stop ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult
        public ActionResult Stop()
        {
            TimerModel timer = (TimerModel)Session["timer"];
            timer.Stop();
            ViewBag.Checkpoints = CheckpointModel.GetCheckpoints(timer.RaceID.Value);
            Session["timer"] = timer;
            return View("Index", timer);
        }