Пример #1
0
        public IList <Club> FindInBounds(double swLatitude, double swLongitude, double neLatitude, double neLongitude)
        {
            bool hasSw = swLatitude != 0D || swLongitude != 0D;
            bool hasNe = neLatitude != 0D || neLongitude != 0D;

            if (hasSw && hasNe)
            {
                return(ClubRepository.FindInBounds(new GeoPoint(swLatitude, swLongitude),
                                                   new GeoPoint(neLatitude, neLongitude)));
            }

            throw Error.RcMapClubService_MustSpecifySeAndNePoint();
        }