hanyadikhetvan-dotnethf/HanyadikHetVan/Profiles/FunFactProfile.cs
Torma Kristóf 634488c2d8
All checks were successful
continuous-integration/drone/push Build is passing
addfunfacts
2021-05-19 17:56:56 +02:00

16 lines
484 B
C#

using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
namespace HanyadikHetVan.Profiles
{
public class FunFactProfile : Profile
{
public FunFactProfile()
{
CreateMap<FunFact, FunFactDTO>();
CreateMap<FunFactDTO, FunFact>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.WeeklyTimeSpanId, options => options.Ignore()).ForMember(x => x.Id, options => options.Ignore());
}
}
}