public IActionResult Index() { ViewBag.columns = ColumnChoices; ViewBag.tableChoices = TableChoices; ViewBag.employers = JobData.GetAllEmployers(); ViewBag.locations = JobData.GetAllLocations(); ViewBag.positionTypes = JobData.GetAllPositionTypes(); ViewBag.skills = JobData.GetAllCoreCompetencies(); return(View()); }
public IActionResult Index() { ViewBag.columns = ColumnChoices; // ViewBag.tableChoices = TableChoices; // ^ seems redundant. Trying to eliminate it by making reference to ListController.TableChoices, which had to be made public (also made it get only) ViewBag.employers = JobData.GetAllEmployers(); ViewBag.locations = JobData.GetAllLocations(); ViewBag.positionTypes = JobData.GetAllPositionTypes(); ViewBag.skills = JobData.GetAllCoreCompetencies(); return(View()); }