Exemple #1
0
        public IActionResult Sleep()
        {
            Datchi Retrieve = HttpContext.Session.GetObjectFromJson <Datchi>("DatchiD");

            Retrieve.Sleep();
            HttpContext.Session.SetObjectAsJson("DatchiD", Retrieve);
            return(RedirectToAction("Game", Retrieve));
        }
Exemple #2
0
 public IActionResult Sleep()
 {
     datchi.Sleep();
     return(Redirect("/"));
 }