//Q2 > This ActionResult returna partial View with Program Names per selected Station. public ActionResult GetProgramNamesByStation(int stationNbr) { StationsVM stnVM = new StationsVM(); stnVM.allPrograms = this.GetAllPrograms(stationNbr); return(PartialView("~/Views/Shared/_AllPrograms.cshtml", stnVM)); }
public ActionResult Index() { //Load Default values //Q2 > Station Drop Down values StationsVM stnVM = new StationsVM(); stnVM.allStations = this.GetAllStations(); return(View(stnVM)); }