Exemple #1
0
        public IActionResult Reset()
        {
            List <Dachi> ret   = HttpContext.Session.GetObjectFromJson <List <Dachi> >("dachi");
            Dachi        dachi = (Dachi)ret[0];

            dachi.reset();
            List <object> dachilist = new List <object>();

            dachilist.Add(dachi);
            HttpContext.Session.SetObjectAsJson("dachi", dachilist);
            return(RedirectToAction("Index"));
        }