hanyadikhetvan-dotnethf/HanyadikHetVan/Profiles/PauseProfile.cs
Torma Kristóf 8347b10401
All checks were successful
continuous-integration/drone/push Build is passing
big day behind me
2021-05-19 04:33:53 +02:00

20 lines
519 B
C#

using AutoMapper;
using HanyadikHetVan.Data.Entities;
using HanyadikHetVan.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
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());
}
}
}