13 lines
252 B
C#
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));
|
|
}
|
|
}
|