Пример #1
0
 public List<User> getAllUsers() {
   return userRepository.getAll();
 }
Пример #2
0
 public User getUserByEmailId(String emailId) {
   return userRepository.findByEmailId(emailId);
 }
Пример #3
0
 public void addUser(String name, String emailId) {
   userRepository.insert(new User(name, emailId));
 }