using Microsoft.Extensions.DependencyInjection; using Timeline.Entities; using Timeline.Models.Http; namespace Timeline.Services.Mapper { public static class MapperServiceCollectionExtensions { public static void AddMappers(this IServiceCollection services) { services.AddAutoMapper(typeof(Startup).Assembly); services.AddScoped, UserMapper>(); services.AddScoped, TimelineMapper>(); services.AddScoped, TimelineMapper>(); services.AddScoped(); } } }