form->getState(); $examRep = new ExamRepository(); try { $this->record = $examRep->update($data, $this->record->id); $this->notify('success', $this->getSavedNotificationTitle()); $this->redirect($this->getResource()::getUrl('index')); } catch (\Exception $exception) { $this->notify('danger', $exception->getMessage()); } } }