using AutoMapper; using AutoMapper.Configuration; namespace LaDOSE.Api.Helpers { public static class AutoMapperTwoWay { public static void CreateMapTwoWay(this IMapperConfigurationExpression mapper) { mapper.CreateMap().IgnoreAllPropertiesWithAnInaccessibleSetter().IgnoreAllSourcePropertiesWithAnInaccessibleSetter(); mapper.CreateMap().IgnoreAllPropertiesWithAnInaccessibleSetter().IgnoreAllSourcePropertiesWithAnInaccessibleSetter(); } } }