public IActionResult AddPilot([FromBody] Pilot pilot)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest() as IActionResult);
            }
            var entity = service.HirePilot(pilot);

            return(entity == null?StatusCode(409) as IActionResult : Created($"{Request.Scheme}://{Request.Host}{Request.Path}{entity.Id}", entity));
        }