/// <summary>
        /// This shows the results page with the information provided
        /// </summary>
        /// <param name="startYear">The start year that was given from the redirect</param>
        /// <param name="endYear">The end year taht was given from the redirect</param>
        /// <returns>The results page with the list of people of the year</returns>
        public IActionResult Result(int startYear, int endYear)
        {
            PersonOfTheYear        person = new PersonOfTheYear();
            List <PersonOfTheYear> peopleBetweenTheYears = person.RetrievePoTY(startYear, endYear);

            return(View(peopleBetweenTheYears));
        }
Beispiel #2
0
        public IActionResult Index()
        {
            List <PersonOfTheYear> personList = Models.PersonOfTheYear.Getperson();

            PersonOfTheYear viewModel = new PersonOfTheYear();

            {
                PersonOfTheYear = personList;
            }

            return(View(viewModel));
        }
 public ViewResult Result(int firstYear, int lastYear)
 {
     return(View(PersonOfTheYear.GetPersons(firstYear, lastYear)));
 }