Ejemplo n.º 1
0
 public GeoNameOrgImporter()
 {
     continentService = new ContinentService();
     countryService   = new CountryService();
     stateService     = new StateService();
     cityService      = new CityService();
 }
        public static bool IsDatabaseEmpty()
        {
            ContinentService continentService = new ContinentService();
            CountryService   countryService   = new CountryService();
            StateService     stateService     = new StateService();
            CityService      cityService      = new CityService();


            if (continentService.Count != 0)
            {
                return(false);
            }

            if (countryService.Count != 0)
            {
                return(false);
            }

            if (stateService.Count != 0)
            {
                return(false);
            }

            if (cityService.Count != 0)
            {
                return(false);
            }

            return(true);
        }
 public ContinentController()
 {
     service = new ContinentService();
 }