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

            var model = new ResidentsViewModel(planetName, residents);

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