Exemplo n.º 1
0
        public ActionResult Feed(int id)
        {
            Tamagotchi myPet = Tamagotchi.Find(id);

            myPet.Feed(myPet.GetFood() + 1);
            return(View("Show", myPet));
        }
Exemplo n.º 2
0
        public ActionResult Feed(int id)
        {
            Tamagotchi tama = Tamagotchi.Find(id);

            tama.SetFood(tama.GetFood() + 1);
            return(View("Details", tama));
        }