public ActionResult <Continent> Delete(int id)
        {
            log("Delete");
            ICountryRepository countRepos = new CountryRepository();

            if (!contRepos.ExistsContinent(id))
            {
                return(NotFound());
            }
            if (countRepos.GetAll(id).Count() > 0)
            {
                GeoException ex = new GeoException("Continent still contains countries.");
                return(BadRequest(ex.Message));
            }

            else
            {
                try
                {
                    contRepos.RemoveContinent(id);
                    return(NoContent());
                }
                catch (GeoException ex)
                {
                    return(BadRequest(ex.Message));
                }
            }
        }
        public ActionResult <Continent> Delete(int continentId, int countryId)
        {
            log("Delete");
            ICityRepository cityRepos = new CityRepository();

            if (cityRepos.GetAll(continentId, countryId).Count() > 0)
            {
                GeoException ex = new GeoException("Country still contains cities.");
                return(BadRequest(ex.Message));
            }

            else
            {
                try
                {
                    countRepos.RemoveCountry(continentId, countryId);
                    return(NoContent());
                }
                catch (GeoException ex)
                {
                    return(NotFound(ex.Message));
                }
            }
        }