public async Task <ActionResult> Residents(string planetName) { var residents = await _swapiService.GetResidents(planetName); var model = new ResidentsViewModel(planetName, residents); return(View(model)); }
public ResidentListPage() { InitializeComponent(); BindingContext = viewModel = new ResidentsViewModel(); NavigationPage.SetHasNavigationBar(this, false); }