예제 #1
0
        public object[] Feed()
        {
            PetModel Pet = HttpContext.Session.GetObjectFromJson <PetModel> ("Dojodachi");
            string   msg = Pet.Feed();

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