Changeset 45df607
Legend:
- Unmodified
- Added
- Removed
-
WineTrackerFinal/WineTrackerWebApi/Controllers/ShipmentController.cs
r07b59f8 r45df607 35 35 List<string> whereConditons = new List<string>(); 36 36 if(!string.IsNullOrEmpty(shipmentDate)) whereConditons.Add("s.shipment_date = @ShipmentDate"); 37 if(!string.IsNullOrEmpty(employeeNameSurname)) whereConditons.Add("LOWER( CONCAT(e.employee_name, ' ', e.employee_surname)) Like '%' || @employeeNameSurname || '%'");37 if(!string.IsNullOrEmpty(employeeNameSurname)) whereConditons.Add("LOWER(e.employee_name || ' ' || e.employee_surname) Like '%' || @employeeNameSurname || '%'"); 38 38 if(!string.IsNullOrEmpty(registration)) whereConditons.Add("LOWER(v.registration) = @Registration"); 39 39
Note:
See TracChangeset
for help on using the changeset viewer.