automapper webapi dependency injection code example
Example 1: automapper dependency injection
services.AddAutoMapper(profileAssembly1, profileAssembly2 /*, ...*/);
Example 2: automapper dependency injection
services.AddAutoMapper(typeof(ProfileTypeFromAssembly1), typeof(ProfileTypeFromAssembly2) /*, ...*/);