diff --git a/Blazorcrud.Server/Models/PersonRepository.cs b/Blazorcrud.Server/Models/PersonRepository.cs index ab1797d..1cc19a1 100644 --- a/Blazorcrud.Server/Models/PersonRepository.cs +++ b/Blazorcrud.Server/Models/PersonRepository.cs @@ -57,8 +57,8 @@ public PagedResult GetPeople(string? name, int page) if (name != null) { return _appDbContext.People - .Where(p => p.FirstName.Contains(name, StringComparison.CurrentCultureIgnoreCase) || - p.LastName.Contains(name, StringComparison.CurrentCultureIgnoreCase)) + .Where(p => p.FirstName.Contains(name) || + p.LastName.Contains(name)) .OrderBy(p => p.PersonId) .Include(p => p.Addresses) .GetPaged(page, pageSize); @@ -117,4 +117,4 @@ public PagedResult GetPeople(string? name, int page) return result; } } -} \ No newline at end of file +}