hanyadikhetvan-dotnethf/HanyadikHetVan/Profiles/PauseProfile.cs

16 lines
422 B
C#
Raw Normal View History

2021-05-19 04:33:53 +02:00
using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
namespace HanyadikHetVan.Profiles
{
public class PauseProfile : Profile
{
public PauseProfile()
{
CreateMap<Pause, PauseDTO>();
CreateMap<PauseDTO, Pause>().ForMember(x => x.Id, options => options.Ignore()).ForMember(x => x.WeeklyTimeSpanId, options => options.Ignore());
}
}
}