public void makeInvisible(long testimonial_id) { try { _transactionManager.beginTransaction(); var testimonial = _testimonialRepo.getById(testimonial_id); if (testimonial == null) { throw new ItemNotFoundException($"Testimonial with id {testimonial_id} doesnot exist."); } testimonial.makeInvisible(); _testimonialRepo.update(testimonial); _transactionManager.commitTransaction(); } catch (Exception) { _transactionManager.rollbackTransaction(); throw; } }