public IActionResult GetAllDepartures()
        {
            var departures = service.GetAllDeparturesInfo();

            return(departures == null?NotFound("No departures found!") as IActionResult
                   : Ok(mapper.Map <IEnumerable <DepartureDTO> >(departures)));
        }
Example #2
0
        public IActionResult GetAllDepartures()
        {
            var departures = service.GetAllDeparturesInfo();

            return(departures == null?NotFound("No departures found!") as IActionResult : Ok(departures));
        }