Example #1
0
        public static Doctor GetDoctorByName(string doctorName)
        {
            var query   = SqlQueryGeneration.GetDoctorByName(doctorName);
            var doctors = _sqlManager.GetDoctor(query);

            return(doctors.Count > 0 ? doctors.First() : null);;
        }