@Override
 public boolean saveUserHardware(UserHardware userHardware) {
   boolean result = true;
   try {
     userHardwareDao.add(userHardware);
   } catch (Exception e) {
     result = false;
   }
   return result;
 }
 @Override
 public boolean update(UserHardware userHardware) {
   boolean flag = true;
   try {
     userHardwareDao.update(userHardware);
   } catch (Exception e) {
     e.printStackTrace();
     flag = false;
   }
   return flag;
 }
 @Override
 public UserHardware getUserHardwareByUserId(int userId) {
   return userHardwareDao.getUserHardwareByUserId(userId);
 }