public static void ConfigureServices(IServiceCollection services, IConfiguration configuration) { services.AddScoped <IMapper>(m => Automapper.GetDefaultMapper()); }