18 lines
625 B
C#
18 lines
625 B
C#
using AutoMapper;
|
|
using PARR.Domain.DTOs.RobotTaskRobotStatus;
|
|
using PARR.Domain.Entities;
|
|
|
|
namespace PARR.Core.Infrastructure.Mapping.RobotTaskRobotStatus
|
|
{
|
|
internal class RobotConfigurationResultMappingProfile : Profile
|
|
{
|
|
public RobotConfigurationResultMappingProfile()
|
|
{
|
|
CreateMap<RobotConfiguration, RobotConfigurationResult>()
|
|
.ForMember(d => d.Robot, o => o.MapFrom(s => s.Robot))
|
|
.ForMember(d => d.TaskStatus, o => o.MapFrom(s => s.TaskStatus))
|
|
.ForMember(d => d.RobotStatus, o => o.MapFrom(s => s.RobotStatus));
|
|
}
|
|
}
|
|
}
|