Ejemplo n.º 1
0
        public async Task <double> ExecuteAsync(GetAirportDistanceRequest input)
        {
            AirportResponse airport1 = await airportService.GetAirport(input.IATACode1);

            AirportResponse airport2 = await airportService.GetAirport(input.IATACode2);

            return(airportService.CalculateDistance(airport1, airport2));
        }