Exemplo n.º 1
0
        public ViewResult Results(ChosenYears years)
        {
            TimePerson timePerson = new TimePerson();

            timePerson.GetPersons(years);
            return(View(timePerson.GetPersons(years)));
        }
        /* This is a posting method takes in two arguments integers
         * and redirects to the Results page */
        public IActionResult Results(int startYear, int endYear)
        {
            //Constuctor funtion to redirect to person of the year
            TimePerson people = new TimePerson();

            return(View(people.GetPersons(startYear, endYear)));
        }
Exemplo n.º 3
0
        public IActionResult Index(int begYear, int endYear)
        {
            //needs to redirect to our results action with the "results" of our query
            List <TimePerson> persons = TimePerson.GetPersons(begYear, endYear);

            return(RedirectToAction(persons.ToString()));
        }
Exemplo n.º 4
0
        public ViewResult Result(int begYear, int endYear)
        {
            //Creates a list of TimePerson file that match criteria
            List <TimePerson> list = TimePerson.GetPersons(begYear, endYear);

            return(View(list));
        }
Exemplo n.º 5
0
 public IActionResult Result(int startYear, int endYear)
 {
     //Went over with Amanda
     return(View(TimePerson.GetPersons(startYear, endYear)));
     //List<TimePerson> people = TimePerson.GetPersons(startYear, endYear);
     //return View();
 }
Exemplo n.º 6
0
        public IActionResult Results(Year year)
        {
            var path   = Path.Combine(_hostingEnvironment.WebRootPath, "personOfTheYear.csv");
            var people = TimePerson.GetPersons(year.FromYear, year.ToYear, path);

            return(View(people));
        }
Exemplo n.º 7
0
        public IActionResult Index(int begYear, int endYear)
        {
            // To redirect to our results action with the "results" of our query

            List <TimePerson> persons = TimePerson.GetPersons(begYear, endYear);

            return(null);
        }
Exemplo n.º 8
0
 public IActionResult Results(int yearFrom, int yearTo)
 {
     return(View(TimePerson.GetPersons(yearFrom, yearTo)));
 }
        public IActionResult Index()
        {
            var random = TimePerson.GetPersons(1950, 1960);

            return(View());
        }
Exemplo n.º 10
0
        public IActionResult Result(int fromYear, int toYear)
        {
            TimePerson TimePerson = new TimePerson();

            return(View(TimePerson.GetPersons(fromYear, toYear)));
        }
        public IActionResult Results(int yearFrom, int yearTo)
        {
            List <TimePerson> list = TimePerson.GetPersons(yearFrom, yearTo);

            return(View(list));
        }
Exemplo n.º 12
0
 public ViewResult Result(int startYear, int endYear)
 {
     return(View(TimePerson.GetPersons(startYear, endYear)));
 }
Exemplo n.º 13
0
        public IActionResult Results(int yearOne, int yearTwo)
        {
            TimePerson person = new TimePerson();

            return(View(TimePerson.GetPersons(yearOne, yearTwo)));
        }
Exemplo n.º 14
0
        /// <summary>
        /// takes the information from the based on the parameters and displays the results on the rseults page
        /// </summary>
        /// <param name="firstyear"></param>
        /// <param name="secondyear"></param>
        /// <returns></returns>
        public IActionResult Results(int firstyear, int secondyear)
        {
            var people = TimePerson.GetPersons(firstyear, secondyear);

            return(View(people));
        }
Exemplo n.º 15
0
        public IActionResult Results(int startYear, int endYear)
        {
            List <TimePerson> persons = TimePerson.GetPersons(startYear, endYear);

            return(View(persons));
        }
 public IActionResult Results(int startYear, int endYear)
 {
     return(View(TimePerson.GetPersons(startYear, endYear)));
 }
 public IActionResult Results(int fromYear, int toYear)
 {
     return(View(TimePerson.GetPersons(fromYear, toYear)));
 }
Exemplo n.º 18
0
        /// <summary>
        /// Renders the Result page using the data we grabbed from our csv file
        /// </summary>
        /// <param name="begYear">Starting year range, sent by user</param>
        /// <param name="endYear">Ending year range, sent by user</param>
        /// <returns>The result view</returns>
        public ViewResult Result(int begYear, int endYear)
        {
            List <TimePerson> result = TimePerson.GetPersons(begYear, endYear);

            return(View(result));
        }
Exemplo n.º 19
0
        public ViewResult Result(int begYear, int endYear)
        {
            List <TimePerson> peoplesOfTheYear = TimePerson.GetPersons(begYear, endYear);

            return(View(peoplesOfTheYear));
        }
Exemplo n.º 20
0
 /// <summary>
 /// This function show the data of selected people to View, which appears on the Results.cshtml.
 /// </summary>
 public ViewResult Results(TimeSelected timeSelected)
 {
     return(View(TimePerson.GetPersons(timeSelected)));
 }
Exemplo n.º 21
0
        /// <summary>
        /// method to output search results to result page
        /// </summary>
        /// <param name="newBegYear">beginning year taken from above method</param>
        /// <param name="newEndYear">ending year taken from above method</param>
        /// <returns>outputs results of list to results view</returns>
        public IActionResult Results(int newBegYear, int newEndYear)
        {
            TimePerson person = new TimePerson();

            return(View(TimePerson.GetPersons(newBegYear, newEndYear)));
        }
        public IActionResult Results(int startYear, int endYear)
        {
            TimePerson person = new TimePerson();

            return View(person.GetPersons(startYear, endYear));
        }
Exemplo n.º 23
0
        /// <summary>
        /// This method passes the user input to the TimePerson Class file
        /// </summary>
        /// <param name="begYear">Beginning year</param>
        /// <param name="endYear">Ending year</param>
        /// <returns>Returns a list of people to the results page</returns>
        public ViewResult Result(int begYear, int endYear)
        {
            List <TimePerson> listOfPeople = TimePerson.GetPersons(begYear, endYear);

            return(View(listOfPeople));
        }