classlib/ExpenseTracker.Application/Common/Mappings/IMapFrom.cs
2024-08-07 21:12:02 +03:00

13 lines
252 B
C#

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