public ActionResult ClearAll()
        {
            Tamagotchi.ClearAll();
            List <Tamagotchi> allTamagotchis = Tamagotchi.GetAll();

            return(View("../Home/Index", allTamagotchis));
        }
Beispiel #2
0
        public ActionResult DeleteAll()
        {
            Tamagotchi.ClearAll();
            List <Tamagotchi> allTamagotchis = Tamagotchi.GetAll();

            return(View("Index", allTamagotchis));
        }
Beispiel #3
0
 public ActionResult DeleteAll()
 {
     Tamagotchi.ClearAll();
     return(View());
 }
 public void Dispose()
 {
     Tamagotchi.ClearAll();
 }
Beispiel #5
0
 public ActionResult Clear()
 {
     Tamagotchi.ClearAll();
     return(Redirect("/"));
 }