Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public HardwareInputSelectorDto GetHardwareInputSelectorDetails(int hardwareInputSelectorId)
        {
            var hardwareInputSelector =
                _hardwareInputSelectorRepository.GetHardwareInputSelectorBy(hardwareInputSelectorId);
            var hardwareInputSelectorDto =
                _mapper.Map <HardwareInputSelector, HardwareInputSelectorDto>(hardwareInputSelector);

            return(hardwareInputSelectorDto);
        }