예제 #1
0
        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)));
        }