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