Exemplo n.º 1
0
        public ActionResult ViewArrivals(int id)
        {
            Dictionary <string, object> model        = new Dictionary <string, object>();
            ArrivalCity          selectedArrivalCity = ArrivalCity.Find(id);
            List <Flight>        flights             = selectedArrivalCity.GetInboundFlights();
            List <DepartureCity> allDepartures       = DepartureCity.GetAll();

            model.Add("selectedArrivalCity", selectedArrivalCity);
            model.Add("flights", flights);
            model.Add("allDepartures", allDepartures);
            return(View(model));
        }
        public ActionResult Index()
        {
            List <DepartureCity> allDepartureCities = DepartureCity.GetAll();

            return(View(allDepartureCities));
        }