Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }