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))); }
public IActionResult GetPilot(int id) { var pilot = service.GetPilotInfo(id); return(pilot == null?NotFound($"Pilot with id = {id} not found!") as IActionResult : Ok(pilot)); }