From f420de9fce43cd24bad83a4c829e43a427e4a30a Mon Sep 17 00:00:00 2001 From: Daniel Gyulai Date: Thu, 19 Nov 2020 17:01:10 +0100 Subject: [PATCH] Bugfix in Doctor selectors --- CoviDok/Data/MySQL/MySqlDoctorHandler.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {