Browse Source

Bugfix in Doctor selectors

master
Daniel Gyulai 4 years ago
parent
commit
f420de9fce
  1. 4
      CoviDok/Data/MySQL/MySqlDoctorHandler.cs

4
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)
{

Loading…
Cancel
Save