using AutoMapper;

namespace UserManagement.API.Helpers.Mapping
{
    public static class MapperConfig
    {
        public static IMapper GetMapperConfigs()
        {
            var mappingConfig = new MapperConfiguration(mc =>
            {
                mc.AddProfile(new ActionProfile());
                mc.AddProfile(new PageProfile());
                mc.AddProfile(new RoleProfile());
                mc.AddProfile(new UserProfile());
                mc.AddProfile(new PageActionProfile());
                mc.AddProfile(new AppSettingProfile());
                mc.AddProfile(new NLogProfile());
                mc.AddProfile(new EmailTemplateProfile());
                mc.AddProfile(new EmailProfile());

                mc.AddProfile(new ReminderProfile());
                mc.AddProfile(new CompanyProfileProfile());
                mc.AddProfile(new PageHelperProfile());
                mc.AddProfile(new UserNotificationProfile());
            });
            return mappingConfig.CreateMapper();
        }
    }
}
