コード例 #1
0
        public ActionResult StartNew()
        {
            var wk = _workoutService.CurrentWorkout();

            if (wk != null)
            {
                return(RedirectToAction("Index"));
            }
            else
            {
                _workoutService.BeginNew();
                return(RedirectToAction("Index"));
            }
        }