Ejemplo n.º 1
0
        public ActionResult DeleteAll(int id)
        {
            Departure.DeleteAll();
            List <Departure> allItems = Departure.GetAll();

            return(View("departures", allItems));
        }
Ejemplo n.º 2
0
        public ActionResult Create()
        {
            Departure newItem = new Departure(Request.Form["new-departure"]);

            newItem.Save();
            Arrival selectedarrival = Arrival.Find(int.Parse(Request.Form["arrival"]));

            newItem.AddArrival(selectedarrival);
            List <Departure> allItems = Departure.GetAll();

            return(View("departures", allItems));
        }
Ejemplo n.º 3
0
        public ActionResult Departures()
        {
            List <Departure> allItems = Departure.GetAll();

            return(View(allItems));
        }
Ejemplo n.º 4
0
        public ActionResult Searchcatfromitems()
        {
            List <Departure> allItems = Departure.GetAll();

            return(View(allItems));
        }