/**
  * Edit form
  *
  * @param $id
  * @return View
  */
 public function edit($id)
 {
     try {
         $state = $this->stateRepo->findById($id);
         return $this->view('salgado.pages.state.create_edit', compact('state'));
     } catch (NotFoundException $e) {
         App::abort(404);
     }
 }
 public function doUpdate()
 {
     $commandData = $this->getCommand();
     $updateable = $this->stateRepo->findById($commandData->id);
     return $this->stateRepo->update($updateable, $this->getUpdateData());
 }