From 261990c8b50a1902971dae03d9b5d199381e3f08 Mon Sep 17 00:00:00 2001 From: Ricardo Souza Date: Fri, 11 Aug 2023 12:23:11 -0300 Subject: [PATCH] =?UTF-8?q?Update=20PersonRepository.cs=20-=20Fixed=20issu?= =?UTF-8?q?e:=20The=20search=20option=20for=20the=20Entities=20was=20raisi?= =?UTF-8?q?ng=20up=20an=20er=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Blazorcrud.Server/Models/PersonRepository.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 +}