java.lang.Object
com.mirna.hospitalmanagementapi.application.usecase.consultation.SaveConsultationUseCase

@Component public class SaveConsultationUseCase extends Object
This class is used to execute the save method from consultation repository
Version:
1.0
Author:
Mirna Gama
  • Constructor Details

    • SaveConsultationUseCase

      public SaveConsultationUseCase()
  • Method Details

    • execute

      public Consultation execute(Consultation consultation)
      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