public IActionResult PlanetSearch(int Id) { PersonPlanet P = new PersonPlanet(); P.Planet = SP.GetPlanet(Id); return(View("Index", P)); }
public IActionResult Index() { PersonPlanet p = new PersonPlanet(); p.People = SP.GetPeople(); return(View(p)); }
public IActionResult PersonSearch(int Id) { //We want to use the DAL to search people by Id PersonPlanet p = new PersonPlanet(); p.Person = SP.GetPerson(Id); return(View("Index", p)); }