/**
  * Update an existing badge class
  *
  * @param BadgeClass $badgeClass
  */
 public function updateAction(BadgeClass $badgeClass)
 {
     $this->badgeClassRepository->update($badgeClass);
     $this->addFlashMessage('The badge class was saved succesfully.', 'Badge class saved');
     $this->redirect('index');
 }
 /**
  * List badge classes
  */
 public function indexAction()
 {
     $badgeClasses = $this->badgeClassRepository->findAll();
     $this->view->assign('value', $badgeClasses);
 }