Exemplo n.º 1
0
        public IActionResult GetAllPilots()
        {
            var pilots = service.GetAllPilotsInfo();

            return(pilots == null?NotFound("No pilots found!") as IActionResult
                   : Ok(mapper.Map <IEnumerable <PilotDTO> >(pilots)));
        }
Exemplo n.º 2
0
        public IActionResult GetAllPilots()
        {
            var pilots = service.GetAllPilotsInfo();

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