Konfigurasikan Automapper

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