Пример #1
0
 private void saveUpdateUser() {
   setAllFildsToUser();
   UserIntf userBc = UserImpl.getInstance();
   if (_user.getId() > 0) {
     userBc.updateUser(_user);
   } else {
     userBc.saveUser(_user);
   }
 }
Пример #2
0
 private User loadUserInfo(Integer id) {
   User user = new User();
   UserIntf userBc = UserImpl.getInstance();
   user = userBc.getUserById(id);
   return user;
 }