public async Task <IActionResult> GetAirport([FromRoute] string airportId) { var airport = await _flightService.GetAirport(airportId); if (airport == null) { return(NotFound()); } return(Ok(AirportDto.Map(airport))); }
public async Task <IActionResult> GetAirports([FromQuery] string cityName) { var airports = await _flightService.GetAirports(cityName); return(Ok(AirportDto.Map(airports))); }