using AutoMapper; namespace Mirea.Api.DataAccess.Application.Common.Mappings; public interface IMapWith { void Mapping(Profile profile) => profile.CreateMap(typeof(T), GetType()); }