public async Task <ActionResult> GetAsync(int id) { BlAirport airportBl = await _airportService.GetByIdAsync(id); Airport airport = _mapper.Map <Airport>(airportBl); if (airport == null) { return(NotFound()); } return(Ok(airport)); }