Пример #1
0
        public District GetDistrict(string district)
        {
            if (Districts == null || Districts.Count < 1)
            {
                return(null);
            }

            var match = Districts.SingleOrDefault(d => d.Matches(district));

            if (default == match)
            {
                return(District.EmptyObject());
            }
            return(match);
        }