Class DoctorServiceImpl

java.lang.Object
com.mirna.hospitalmanagementapi.application.services.DoctorServiceImpl
All Implemented Interfaces:
DoctorService

@Service public class DoctorServiceImpl extends Object implements 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 Details

    • DoctorServiceImpl

      public DoctorServiceImpl()
  • Method Details

    • addDoctor

      public Doctor addDoctor(DoctorDTO doctorDTO)
      Adds a new doctor to the database.
      Specified by:
      addDoctor in interface DoctorService
      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.