public async Task <IActionResult> GetFlight(long id) { var flight = await service.GetFlightInfoAsync(id); return(flight == null?NotFound($"Flight with id = {id} not found!") as IActionResult : Ok(mapper.Map <FlightDTO>(flight))); }