public async Task <IActionResult> GetFlightDepartures(long id) { var departures = await service.GetFlightDepartureInfoAsync(id); return(departures == null?NotFound($"Flight with id = {id} have not departure yet!") as IActionResult : Ok(mapper.Map <IEnumerable <DepartureDTO> >(departures))); }