location lookup fix
This commit is contained in:
parent
d07b888b62
commit
4fe619665d
@ -39,7 +39,7 @@ namespace POCDistance.Service
|
|||||||
if (!string.IsNullOrWhiteSpace(zipCode) && zipCode.Length > 1)
|
if (!string.IsNullOrWhiteSpace(zipCode) && zipCode.Length > 1)
|
||||||
{
|
{
|
||||||
var locations = GetAll();
|
var locations = GetAll();
|
||||||
var query = locations.Where(l => l.ZipCode.ToLower() == zipCode.Trim().ToLower());
|
var query = locations.Where(l => l.ZipCode.Contains(zipCode));
|
||||||
return query.ToList();
|
return query.ToList();
|
||||||
}
|
}
|
||||||
return new List<LocationModel>();
|
return new List<LocationModel>();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user