Class SaveConsultationUseCase
java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.consultation.SaveConsultationUseCase
This class is used to execute the save method from consultation repository
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionexecute(Consultation consultation) Executes the save method from Consultation repository
-
Constructor Details
-
SaveConsultationUseCase
public SaveConsultationUseCase()
-
-
Method Details
-
execute
Executes the save method from Consultation repository- Parameters:
consultation- The Consultation to be saved in the repository- Returns:
- The saved consultation if successful, or null if there is an error
-