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));
|
||||
//}
|
||||
|
||||
//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))
|
||||
{
|
||||
var loweredDoc = document.ToLower();
|
||||
query = query.Where(c =>
|
||||
c.PhSCustomerDocuments.Any(a =>
|
||||
EF.Functions.Like(a.DocumentNumber.ToLower(), $"%{loweredDoc}%")));
|
||||
a.DocumentNumber.ToLower().Contains(loweredDoc)));
|
||||
}
|
||||
//if (!string.IsNullOrWhiteSpace(email))
|
||||
//{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user