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 }); }