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

HasStopped() private method

private HasStopped ( int raceId ) : System.Web.Mvc.ActionResult
raceId int
return System.Web.Mvc.ActionResult
        public ActionResult HasStopped(int raceId)
        {
            var race = RaceModel.GetById(raceId);
            TimerModel timer = null;
            if (race.GetTimerId().HasValue)
            {
                timer = TimerModel.GetTimerById(race.GetTimerId().Value);
                if (timer.EndTime.HasValue)
                    return Content("Stopped");
            }
            return Content("");
        }