use of com.axelor.apps.crm.db.repo.EventReminderRepository in project axelor-open-suite by axelor.
the class EventController method deleteReminder.
@Transactional(rollbackOn = { Exception.class })
public void deleteReminder(ActionRequest request, ActionResponse response) {
try {
EventReminderRepository eventReminderRepository = Beans.get(EventReminderRepository.class);
EventReminder eventReminder = eventReminderRepository.find((long) request.getContext().get("id"));
eventReminderRepository.remove(eventReminder);
response.setCanClose(true);
} catch (Exception e) {
TraceBackService.trace(response, e);
}
}
Aggregations