예제 #1
0
        public ActionResult ClearAll()
        {
            Tamagotchi.ClearAll();
            List <Tamagotchi> allTamagotchis = Tamagotchi.GetAll();

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

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