コード例 #1
0
        public IActionResult Reset()
        {
            Dojodachi dojo = new Dojodachi();

            DojodachiHelper.Save(HttpContext, dojo);
            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public IActionResult Sleep()
        {
            Dojodachi dojo = DojodachiHelper.Get(HttpContext);

            dojo.Sleep();
            DojodachiHelper.Save(HttpContext, dojo);
            return(RedirectToAction("Index"));
        }