Interface ConsultationService
- All Known Implementing Classes:
ConsultationServiceImpl
public interface ConsultationService
-
Method Summary
Modifier and TypeMethodDescriptionaddConsultation(ConsultationDTO consultationDTO) Adds a new consultation to the repository.
-
Method Details
-
addConsultation
Consultation addConsultation(ConsultationDTO consultationDTO) throws ConsultationValidationException Adds a new consultation to the repository.- Parameters:
consultationDTO- A data transfer object representing a consultation to add.- Returns:
- The saved consultation if successful, or throws an exception if there is an error.
- Throws:
ConsultationValidationException- if there is a validation error
-