public CountryLocation VContinent(CountryLocation countrylocation, IContinentService _continentService)
        {
            Continent continent = _continentService.GetObjectById(countrylocation.ContinentId);

            if (continent == null)
            {
                countrylocation.Errors.Add("ContinentId", "Tidak boleh kosong");
            }

            return(countrylocation);
        }
        public Continent VObject(Continent continent, IContinentService _continentService)
        {
            Continent oldcontinent = _continentService.GetObjectById(continent.Id);

            if (oldcontinent == null)
            {
                continent.Errors.Add("Generic", "Invalid Data For Update");
            }
            else if (!VOffice(continent.OfficeId, oldcontinent.OfficeId))
            {
                continent.Errors.Add("Generic", "Invalid Data For Update");
            }
            return(continent);
        }