Esempio n. 1
0
        public ActionResult Index3(int id)
        {
            TamaPet.Find(id).SetPlay();
            List <TamaPet> allTamagotchies = TamaPet.GetAll();

            return(View("Index", allTamagotchies));
        }
Esempio n. 2
0
        public ActionResult Create()
        {
            TamaPet newTamagotchi = new TamaPet(Request.Form["new-tamagotchi"]);

            List <TamaPet> allTamagotchies = TamaPet.GetAll();

            return(View("Index", allTamagotchies));
        }
Esempio n. 3
0
        public ActionResult Decrease()
        {
            List <TamaPet> allTamagotchies = TamaPet.GetAll();

            foreach (TamaPet time in allTamagotchies)
            {
                time.Timepass();
            }
            return(View("Index", allTamagotchies));
        }
Esempio n. 4
0
        public ActionResult Index()
        {
            List <TamaPet> allTamagotchies = TamaPet.GetAll();

            return(View(allTamagotchies));
        }
Esempio n. 5
0
 public ActionResult DeleteAll()
 {
     TamaPet.ClearAll();
     return(View());
 }