Esempio n. 1
0
        private Region GetOrInsertRegion(string name)
        {
            Region regionDb = _citiesRepository.GetRegionByName(name);

            if (regionDb == null)
            {
                regionDb = new Region(name);
                _citiesRepository.AddNewRegion(regionDb);
            }

            return(regionDb);
        }