private async Task EditAsync() { try { await ButtonSpinner.SpinAsync(async() => { await HardwareVaultService.UpdateRfidAsync(HardwareVault); await ToastService.ShowToastAsync("RFID updated.", ToastType.Success); await ModalDialogClose(); }); } catch (Exception ex) { Logger.LogError(ex.Message); await ToastService.ShowToastAsync(ex.Message, ToastType.Error); await ModalDialogCancel(); } }