Exemplo n.º 1
0
        public ActionResult Create()
        {
            PlacesObject        newPlace  = new PlacesObject(Request.Form["new-place"], Request.Form["new-length"]);
            List <PlacesObject> allPlaces = PlacesObject.GetAll();

            return(View("Places", allPlaces));
        }
Exemplo n.º 2
0
        public ActionResult Places()
        {
            List <PlacesObject> allPlaces = PlacesObject.GetAll();

            return(View(allPlaces));
        }
Exemplo n.º 3
0
 public ActionResult DeleteAll()
 {
     PlacesObject.ClearAll();
     return(View());
 }
Exemplo n.º 4
0
        public ActionResult Details(int id)
        {
            PlacesObject place = PlacesObject.Find(id);

            return(View(place));
        }