public IActionResult Index(string planetID) { Planet p = SW.GetPlanet(planetID); ViewBag.planetID = planetID; return(View(p)); }
public ActionResult Planet(int i) { Planet planet = StarWarsDAL.GetPlanet(i); return(View(planet)); //return View(StarWarsDAL.GetPerson(i)); }
public async Task <IActionResult> PlanetSearch(int selection) { StarWarsDAL db = new StarWarsDAL(); Planet Home = new Planet(); Home = await db.GetPlanet("https://swapi.co/api/planets/" + Convert.ToString(selection) + "/"); ViewBag.Type = "Planet"; return(View("ResultPlanet", Home)); }
public ActionResult Planet(int i) { Planet planet = StarWarsDAL.GetPlanet(i); return(View("PlanetView", planet)); }
public ActionResult Planet(int i) { return(View(StarWarsDAL.GetPlanet(i))); }
public IActionResult PlanetSearch(int Id) { Planet pl = SD.GetPlanet("planets", Id); return(View(pl)); }