private async Task ResetSearchAsync() { switch (_activeSearch) { case 0: People = await _peopleRepository.GetAllPeopleAsync(); break; case 1: Starships = await _starshipRepository.GetAllStarshipsAsync(); break; case 2: Films = await _filmRepository.GetAllFilms(); break; case 3: Planets = await _planetRepository.GetAllPlanetsAsync(); break; case 4: Vehicles = await _vehiclesRepository.GetAllVehiclesAsync(); break; case 5: Species = await _speciesRepository.GetAllSpeciesAsync(); break; } }