protected function submitEditCountryState()
    {
        if ($this->isPosted('delete')) {
            $this->deleteCountryState();
        } else if ($this->isPosted('save') && $this->validateEditCountryState()) {
            if (isset($this->data_state['state_id'])) {
                $this->updateCountryState();
            } else {
                $this->addCountryState();
            }
        }
    }