using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Tango.BL.ActionLogs; using Tango.BL.Entities; namespace Tango.BL.DTO { public class HardwareMotorDTO : HardwareMotorDTOBase { [ObservableDTOProperty(MapsTo = nameof(HardwareMotor.HardwareMotorType) + "." + nameof(HardwareMotor.HardwareMotorType.Description))] public String HardwareMotorTypeDescription { get; set; } [ActionLogIgnore] public HardwareMotorTypeDTO HardwareMotorType { get; set; } protected override string OnGetActionLogName() { return $"Motor '{HardwareMotorTypeDescription}'"; } } }