Class DoctorServiceImpl
java.lang.Object
com.mirna.hospitalmanagementapi.application.services.DoctorServiceImpl
- All Implemented Interfaces:
DoctorService
This class is an implementation of the DoctorService interface.
This class provides methods to perform operations on doctors
- Version:
- 1.0
- Author:
- Mirna Gama
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DoctorServiceImpl
public DoctorServiceImpl()
-
-
Method Details
-
addDoctor
Adds a new doctor to the database.- Specified by:
addDoctorin interfaceDoctorService- Parameters:
doctorDTO- A data transfer object containing the data for Doctor entity.- Returns:
- The saved doctor if successful, or null if there is an error.
-