public function performsaveorupdate() { $data = $this->input->post(); $itemTypeService = new ItemTypeService(); $itemTypeId = $itemTypeService->saveOrUpdate($data); $this->load->helper('url'); redirect('admin_item_type'); }