using AutoMapper; using Microsoft.Extensions.DependencyInjection; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace MVCTemplate.Business.Infrastructure.Extensions { public class StartupExtensions { public static void ConfigureServices(IServiceCollection services) { Data.Extensions.StartupExtensions.ConfigureServices(services); // TODO: add all missing services var mapperConfiguration = new MapperConfiguration(mc => { mc.AddProfile(new MapperProfile()); }); IMapper mapper = mapperConfiguration.CreateMapper(); services.AddSingleton(mapper); //services.AddLocalization(options => options.ResourcesPath = "Infrastructure/Resources"); } } }