Ejemplo n.º 1
0
        public async Task OnGet(SearchDTO queryCar)
        {
            SearchCar = queryCar;

            Cars           = carManager.GetCars(queryCar);
            PickUpLocation = await locationManager.GetLocationByAddress(queryCar.CountryPickUp, queryCar.CityPickUp, queryCar.LocationPickUp);

            DropDownLocation = await locationManager.GetLocationByAddress(queryCar.CountryDropDown, queryCar.CityDropDown, queryCar.LocationDropDown);

            if (DropDownLocation == null)
            {
                DropDownLocation = PickUpLocation;
            }
        }