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

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

            return(RedirectToAction("Index"));
        }