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