private bool DeviceExists(int id)
 {
     return(_devicesRepository.Any(id));
 }