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