public async Task <IActionResult> GetAllDepartures() { var departures = await service.GetAllDeparturesInfoAsync(); return(departures == null?NotFound("No departures found!") as IActionResult : Ok(mapper.Map <IEnumerable <DepartureDTO> >(departures))); }