Пример #1
0
 public ActionResult DeleteAll()
 {
     Place.ClearAll();
     return(View());
 }
Пример #2
0
        public ActionResult Index()
        {
            List <Place> allPlaces = Place.GetAll();

            return(View(allPlaces));
        }
Пример #3
0
        public ActionResult Create(string cityName)
        {
            Place myPlace = new Place(cityName);

            return(RedirectToAction("Index"));
        }