public IActionResult Results(string searchType, string searchTerm) { List <Dictionary <String, String> > jobs; if (searchType.Equals("all")) { jobs = JobData.FindByValue(searchTerm); } else { jobs = JobData.FindColumnAndValue(searchType, searchTerm); } ViewBag.title = "Jobs with " + ListController.columnChoices[searchType] + ": " + searchTerm; ViewBag.jobs = jobs; return(View()); }