コード例 #1
0
        public IActionResult GetPilot(long id)
        {
            var pilot = service.GetPilotInfo(id);

            return(pilot == null?NotFound($"Pilot with id = {id} not found!") as IActionResult
                   : Ok(mapper.Map <PilotDTO>(pilot)));
        }
コード例 #2
0
        public IActionResult GetPilot(int id)
        {
            var pilot = service.GetPilotInfo(id);

            return(pilot == null?NotFound($"Pilot with id = {id} not found!") as IActionResult : Ok(pilot));
        }