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