/// <summary> This method is getting all doctors that have same specialty given as parameter. </summary> /// <returns> list of all doctors that have same specialty. </returns> public List <DoctorUser> GetDoctorsBySpecialty(string specialty) { return(GetAll().FindAll(doctor => UtilityMethods.CheckForSpecialty(doctor, specialty))); }