using AutoMapper; namespace MyNewProjectName.Application.Mappings; /// /// Interface for auto mapping registration /// public interface IMapFrom { void Mapping(Profile profile) => profile.CreateMap(typeof(T), GetType()); }