2023-05-17 16:00:50 +10:00
|
|
|
|
using AutoMapper;
|
2023-06-16 15:00:11 +10:00
|
|
|
|
using PARR.API.Contracts.V1.Responses;
|
|
|
|
|
|
using PARR.DAL.Models;
|
2023-05-17 16:00:50 +10:00
|
|
|
|
|
2023-05-17 16:30:13 +10:00
|
|
|
|
namespace PARR.API.MappingProfiles
|
2023-05-17 16:00:50 +10:00
|
|
|
|
{
|
|
|
|
|
|
public class DomainToResponseProfile : Profile
|
|
|
|
|
|
{
|
|
|
|
|
|
public DomainToResponseProfile()
|
|
|
|
|
|
{
|
2023-06-20 12:29:58 +10:00
|
|
|
|
// --- Job ---
|
|
|
|
|
|
CreateMap<Job, JobBaseResponse>()
|
|
|
|
|
|
.Include<Job, JobGetAllResponse>()
|
2023-06-16 15:00:11 +10:00
|
|
|
|
.ForMember(d => d.FrequencyMinute, o => o.MapFrom(s => s.Frequency));
|
2023-06-20 12:29:58 +10:00
|
|
|
|
CreateMap<Job, JobGetAllResponse>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CreateMap<JobMode, JobModeResponse>();
|
2023-05-17 16:00:50 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|