Ejemplo n.º 1
0
        public object[] Work()
        {
            PetModel Pet = HttpContext.Session.GetObjectFromJson <PetModel> ("Dojodachi");
            string   msg = Pet.Work();

            HttpContext.Session.SetObjectAsJson("Dojodachi", Pet);
            return(new object[] { msg, Pet.Meals, Pet.Energy });
        }