示例#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));
 }