protected function submitEditCountry()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCountry();
        } else if ($this->isPosted('save') && $this->validateEditCountry()) {
            if (isset($this->data_country['code'])) {
                $this->updateCountry();
            } else {
                $this->addCountry();
            }
        }
    }