Esempio n. 1
0
 public ActionResult DeleteAll()
 {
     Place.ClearAll();
     return(View());
 }
Esempio n. 2
0
        public ActionResult Index()
        {
            List <Place> allPlaces = Place.GetAll();

            return(View(allPlaces));
        }
Esempio n. 3
0
        public ActionResult Create(string cityName)
        {
            Place myPlace = new Place(cityName);

            return(RedirectToAction("Index"));
        }