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));
        }