Ejemplo n.º 1
0
        public IEnumerable <ClosestLocation> Get(double lat, double lon, int distance, int count)
        {
            var results = _dataAccess.GetClosestLocations(new LocationQuery
            {
                Distance           = distance,
                Latitude           = lat,
                Longitude          = lon,
                MaxRecordsToReturn = count
            });

            return(results);
        }
 public List <Models.ClosestLocation> Handle(ClosestLocationsQuery message)
 {
     return(dataAccess.GetClosestLocations(message.LocationQuery).ToList());
 }