Beispiel #1
0
        public static GeoZone GetByCode(Guid countryGuid, string code)
        {
            GeoZone geoZone = new GeoZone();

            using (IDataReader reader = DBGeoZone.GetByCode(countryGuid, code))
            {
                LoadFromReader(geoZone, reader);
            }

            if (geoZone.Guid == Guid.Empty)
            {
                return(null);
            }
            return(geoZone);
        }