using AutoMapper; namespace ExpenseTracker.Application.Common.Mappings; public interface IMapFrom { void Mapping(Profile profile) { profile.CreateMap(typeof(T), GetType()); profile.CreateMap(GetType(), typeof(T)); } }