public List <Models.ClosestLocation> Handle(ClosestLocationsQuery message)
 {
     return(_context.ClosestLocations.FromSql(
                "EXEC GetClosestLocations {0}, {1}, {2}, {3}",
                message.LocationQuery.Latitude,
                message.LocationQuery.Longitude,
                message.LocationQuery.MaxRecordsToReturn ?? 10,
                message.LocationQuery.Distance ?? 10
                ).ToList());
 }
 public List <Models.ClosestLocation> Handle(ClosestLocationsQuery message)
 {
     return(dataAccess.GetClosestLocations(message.LocationQuery).ToList());
 }