diff --git a/CoviDok/Data/MySQL/MySqlDoctorHandler.cs b/CoviDok/Data/MySQL/MySqlDoctorHandler.cs index cef2bf2..d03e637 100644 --- a/CoviDok/Data/MySQL/MySqlDoctorHandler.cs +++ b/CoviDok/Data/MySQL/MySqlDoctorHandler.cs @@ -37,11 +37,11 @@ namespace CoviDok.Data.MySQL { if (firstName != null && lastName != null) { - return (from d in context.Doctors where d.FirstName.ToLower().Contains(firstName) && d.LastName.ToLower().Contains(lastName.ToLower()) select d).ToList(); + return (from d in context.Doctors where d.FirstName.ToLower().Contains(firstName.ToLower()) && d.LastName.ToLower().Contains(lastName.ToLower()) select d).ToList(); } if (firstName != null) { - return (from d in context.Doctors where d.FirstName.ToLower().Contains(firstName) select d).ToList(); + return (from d in context.Doctors where d.FirstName.ToLower().Contains(firstName.ToLower()) select d).ToList(); } if (lastName != null) {