/**
  * Updates a particular model.
  * If update is successful, the browser will be redirected to the 'view' page.
  * @param integer $id the ID of the model to be updated
  */
 public function actionUpdate()
 {
     $modelTipoRiesgo = new TipoRiesgo();
     $model = $modelTipoRiesgo->findByPk($_POST['idTipoRiesgoEditar']);
     $model->nombre = $_POST['nombreTipoRiesgoEditar'];
     $model->save();
     $this->redirect(array('default/index'));
 }