Пример #1
0
        public bool DeleteDoctorById(int doctorId)
        {
            PatientManager patientManager = new PatientManager();
            List <Patient> patientList    = patientManager.GetPatientsByDoctorId(doctorId);

            if (patientList.Count > 0)
            {
                return(false);
            }
            else
            {
                return(doctorGateway.DeleteDoctorById(doctorId));
            }
        }
        public bool DeleteDoctorById(int doctorId)
        {
            DoctorGateway doctorGateway = new DoctorGateway();

            return(doctorGateway.DeleteDoctorById(doctorId));
        }