public void SaveSimulatorEventLinking(int simulatorEventId, int hardwareInputId, int hardwareInputSelectorId) { var simulatorEvent = _simulatorEventRepository.GetSimulatorEventBy(simulatorEventId); var hardwareInputSelector = _hardwareInputSelectorRepository.GetHardwareInputSelectorBy(hardwareInputSelectorId); hardwareInputSelector.SimulatorEvent = simulatorEvent; _hardwareInputSelectorRepository.UpdateHardwareInputSelector(hardwareInputSelector); }
public HardwareInputSelectorDto GetHardwareInputSelectorDetails(int hardwareInputSelectorId) { var hardwareInputSelector = _hardwareInputSelectorRepository.GetHardwareInputSelectorBy(hardwareInputSelectorId); var hardwareInputSelectorDto = _mapper.Map <HardwareInputSelector, HardwareInputSelectorDto>(hardwareInputSelector); return(hardwareInputSelectorDto); }