Rick Taylor has worked in the customer success sector for the past two years. In 2020, they joined ITBroker.com as the Head of Customer Success. Prior to that, they were the Head of Customer Success at Clarksys, a position they held since 2019.
package com.example.demo.service;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.example.demo.model.User;
import com.example.demo.repository.UserRepository;
@Service
public class UserService {
@Autowired
private UserRepository userRepository;
public List<User> getAllUsers(){
return userRepository.findAll();
}
public User getUserById(int id) {
return userRepository.findById(id).get();
}
public void saveOrUpdate(User user) {
userRepository.save(user);
}
public void deleteUser(int id) {
userRepository.deleteById(id);
}
}
Links
Sign up to view 0 direct reports
Get started