public IActionResult GetAllDeviceSetups()
        {
            ICollection <DeviceConfiguration> devices = _deviceSetupRepository.GetAll();

            var mappedItems = devices.Select(AutoMapper.Mapper.Map <DeviceSetupDto>);

            return(Ok(mappedItems));
        }
 public IEnumerable <DeviceSetup> GetAllDeviceSetup()
 {
     return(deviceSetupRepository.GetAll());
 }