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))); }
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())); }
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)); }
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(); }
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)); }
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); }
public IActionResult Results(int yearFrom, int yearTo) { return(View(TimePerson.GetPersons(yearFrom, yearTo))); }
public IActionResult Index() { var random = TimePerson.GetPersons(1950, 1960); return(View()); }
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)); }
public ViewResult Result(int startYear, int endYear) { return(View(TimePerson.GetPersons(startYear, endYear))); }
public IActionResult Results(int yearOne, int yearTwo) { TimePerson person = new TimePerson(); return(View(TimePerson.GetPersons(yearOne, yearTwo))); }
/// <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)); }
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))); }
/// <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)); }
public ViewResult Result(int begYear, int endYear) { List <TimePerson> peoplesOfTheYear = TimePerson.GetPersons(begYear, endYear); return(View(peoplesOfTheYear)); }
/// <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))); }
/// <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)); }
/// <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)); }