예제 #1
0
        public ActionResult Edit()
        {
            var buses = repository.GetBuses();
            HomeIndexViewModel model = new HomeIndexViewModel
            {
                busNumber = buses,
                stopName  = new List <string>(),
                endStop   = new List <string>(),
                days      = new List <string>()
            };

            return(View(model));
        }
예제 #2
0
        public ActionResult Index()
        {
            //получение номеров автобусов
            var buses = repository.GetBuses();

            HomeIndexViewModel model = new HomeIndexViewModel {
                busNumber = buses,
                stopName  = new List <string>(),
                endStop   = new List <string>(),
                days      = new List <string>()
            };

            return(View(model));
        }