using AutoMapper;
using PARR.Domain.DTOs.TaskDTO;
namespace PARR.Core.Infrastructure.Mapping
{
///
/// Маппинг все что касается Task
///
internal class TaskMappingProfile : Profile
{
public TaskMappingProfile()
{
#region TaskItem
CreateMap()
.Include()
.Include();
CreateMap();
#endregion
#region ActiveTask
CreateMap()
.ForMember(d => d.Type, o => o.MapFrom(s => s.TaskType))
.ForMember(d => d.Status, o => o.MapFrom(s => s.TaskStatus));
#endregion
#region TaskType
CreateMap();
#endregion
#region TaskStatus
CreateMap();
#endregion
}
}
}