public async Task OnDeleteProfessor(Professor professor) { var result = await _confirmationDialogHelper.ConfirmationWindowCall(ElementType.Professor); if (result) { Professors.Remove(professor); _professorRepository.DeleteProfessor(professor); } }