protected async Task ConfirmationChoiceSelected(bool deleteConfirmed) { if (deleteConfirmed) { await EmployeeService.DeleteEmployee(Employee.EmployeeId); await OnEmployeeDeletion.InvokeAsync(Employee.EmployeeId); } }
protected async Task ConfirmDelete_Click(bool confirmDelete) { if (confirmDelete) { await EmployeeService.DeleteEmployee(Employee.EmployeeId); await OnEmployeeDeletion.InvokeAsync(Employee.EmployeeId); } }