using AutoMapper; using Microsoft.Extensions.DependencyInjection; using System; using Znyc.Recruitment.Admin.Commons.Mapping; namespace Znyc.Recruitment.Admin.Commons.Module { /// /// AutoMapperService /// public class AutoMapperService { /// /// /// public static void UsePack(IServiceProvider provider) { IMapper mapper = provider.GetService(); MapperExtensions.SetMapper(mapper); } } }