Add Patch Customer. Test
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m52s
All checks were successful
CI/CD Pipeline / Build and Deploy with Docker Compose (push) Successful in 2m52s
This commit is contained in:
parent
bed284692c
commit
7777cd365f
@ -49,12 +49,19 @@ namespace Models.Repositories
|
|||||||
// c.BusinessName.ToLower().Contains(loweredName));
|
// c.BusinessName.ToLower().Contains(loweredName));
|
||||||
//}
|
//}
|
||||||
|
|
||||||
|
//if (!string.IsNullOrWhiteSpace(document))
|
||||||
|
//{
|
||||||
|
// var loweredDoc = document.ToLower();
|
||||||
|
// query = query.Where(c =>
|
||||||
|
// c.PhSCustomerDocuments.Any(a =>
|
||||||
|
// EF.Functions.Like(a.DocumentNumber.ToLower(), $"%{loweredDoc}%")));
|
||||||
|
//}
|
||||||
if (!string.IsNullOrWhiteSpace(document))
|
if (!string.IsNullOrWhiteSpace(document))
|
||||||
{
|
{
|
||||||
var loweredDoc = document.ToLower();
|
var loweredDoc = document.ToLower();
|
||||||
query = query.Where(c =>
|
query = query.Where(c =>
|
||||||
c.PhSCustomerDocuments.Any(a =>
|
c.PhSCustomerDocuments.Any(a =>
|
||||||
EF.Functions.Like(a.DocumentNumber.ToLower(), $"%{loweredDoc}%")));
|
a.DocumentNumber.ToLower().Contains(loweredDoc)));
|
||||||
}
|
}
|
||||||
//if (!string.IsNullOrWhiteSpace(email))
|
//if (!string.IsNullOrWhiteSpace(email))
|
||||||
//{
|
//{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user