public async Task <ActionResult> Residents(string planetName)
        {
            var residents = await _swapiService.GetResidents(planetName);

            var model = new ResidentsViewModel(planetName, residents);

            return(View(model));
        }
Example #2
0
 public ResidentListPage()
 {
     InitializeComponent();
     BindingContext = viewModel = new ResidentsViewModel();
     NavigationPage.SetHasNavigationBar(this, false);
 }