Browse Source

location lookup fix

master
Satyendra Hari 3 years ago
parent
commit
4fe619665d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      API/POCDistance/Service/LocationService.cs

+ 1
- 1
API/POCDistance/Service/LocationService.cs View File

@ -39,7 +39,7 @@ namespace POCDistance.Service
if (!string.IsNullOrWhiteSpace(zipCode) && zipCode.Length > 1)
{
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 new List<LocationModel>();


Loading…
Cancel
Save