public async Task <IActionResult> GetByIdAsync(int id)
        {
            var personne = await repository.GetAsync(id);

            if (personne == null)
            {
                return(BadRequest());
            }

            var result = mapper.Map <Personne, PersonneDto>(personne);

            return(Ok(result));
        }