public IActionResult Results(int beginningYear, int endYear) { //redirect to results action with query output List <TimePerson> persons = TimePerson.GetPerson(beginningYear, endYear); return(View(persons)); }
public IActionResult Results(int startyear, int endyear) { return(View(TimePerson.GetPerson(startyear, endyear))); }