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