hanyadikhetvan-dotnethf/HanyadikHetVan/Profiles/FunFactProfile.cs

16 lines
496 B
C#
Raw Normal View History

2021-05-19 17:56:56 +02:00
using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
namespace HanyadikHetVan.Profiles
{
public class FunFactProfile : Profile
{
public FunFactProfile()
{
CreateMap<FunFact, FunFactDTO>();
2021-05-20 01:36:54 +02:00
CreateMap<FunFactDTO, FunFact>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.WeeklyTimeSpanId, options => options.Ignore()).ForMember(x => x.WeeklyTimeSpan, options => options.Ignore());
2021-05-19 17:56:56 +02:00
}
}
}