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-16 15:00:11 +10:00
|
|
|
|
// --- Scheduler ---
|
|
|
|
|
|
CreateMap<Scheduler, SchedulerBaseResponse>()
|
|
|
|
|
|
.Include<Scheduler, SchedulerGetAllResponse>()
|
|
|
|
|
|
.ForMember(d => d.FrequencyMinute, o => o.MapFrom(s => s.Frequency));
|
|
|
|
|
|
CreateMap<Scheduler, SchedulerGetAllResponse>();
|
2023-05-17 16:00:50 +10:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|