Configurer l'automappeur

builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
Jay