class HabitFactServiceImpl implements HabitFactService {

    @Override
    public Long delete(Long id) {
        if (!(habitFactRepo.findById(id).isPresent())) {
            throw new NotDeletedException(ErrorMessage.HABIT_FACT_NOT_DELETED_BY_ID);
        }
        habitFactRepo.deleteById(id);
        return id;
    }

    @Autowired public  HabitFactServiceImpl(ModelMapper modelMapper, HabitFactRepo habitFactRepo,
                                HabitDictionaryRepo habitDictionaryRepo, FactTranslationRepo factTranslationRepo);

}