Пример #1
0
 @Override
 public boolean delete(Long id) {
   contRepository.delete(id);
   return true;
 }
Пример #2
0
 @Override
 public List<Contribution> findAllConts() {
   return contRepository.findAll();
 }
Пример #3
0
 @Override
 public Contribution getOneCont(Long id) {
   return contRepository.getOne(id);
 }
Пример #4
0
 @Override
 public Contribution addNewCont(Contribution contribution) {
   Contribution newCont = contRepository.save(contribution);
   return newCont;
 }