public function delete($id)
 {
     if (SessionAdmin::isLogged()) {
         return $this->dao->delete($id);
     } else {
         throw new LoginException();
     }
 }