class AlertServiceImpl extends RootTransactionalService implements AlertService {

    @Override
    @Transactional
    public ServiceResult<AlertResource> create(AlertResource alertResource) {
        Alert saved = alertRepository.save(alertMapper.mapToDomain(alertResource));
        return serviceSuccess(alertMapper.mapToResource(saved));
    }

}