Add Patch CustomerRepository
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m59s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m59s
This commit is contained in:
parent
4537352054
commit
5628b909cd
@ -51,10 +51,7 @@ namespace Models.Repositories
|
|||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(document))
|
if (!string.IsNullOrWhiteSpace(document))
|
||||||
{
|
{
|
||||||
var loweredDoc = document.ToLower();
|
query = query.Where(c => c.PhSCustomerDocuments.Any(d => d.DocumentNumber.Contains(document)));
|
||||||
query = query.Where(c =>
|
|
||||||
c.PhSCustomerDocuments.Any(d =>
|
|
||||||
d.DocumentNumber.ToLower().Contains(loweredDoc)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!string.IsNullOrWhiteSpace(email))
|
if (!string.IsNullOrWhiteSpace(email))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user