public async Task <ActionResult> TimeTable(string stopId, string routeId, string stop, string destination, string lineName)
        {
            minuteTimeTable = await _indexService.GetTimeTables(stopId, routeId);

            ViewBag.stopId      = stopId;
            ViewBag.routeIds    = minuteTimeTable.RouteIds;
            ViewBag.minDic      = minuteTimeTable.MinuteDictionary;
            ViewBag.busLine     = minuteTimeTable.BusLineName;
            ViewBag.stop        = stop;
            ViewBag.destination = destination;
            ViewBag.lineName    = lineName;


            return(View(minuteTimeTable));
        }
Example #2
0
        public TimeTablePage(MinuteTimeTable minuteTimeTable)
        {
            InitializeComponent();

            Title = minuteTimeTable.BusLineName + " - " + minuteTimeTable.StopName;
        }