public async Task DeleteVaultAsync() { try { await WorkstationService.DeleteProximityVaultAsync(WorkstationProximityVault.Id); await ToastService.ShowToastAsync("Vault deleted.", ToastType.Success); await ModalDialogClose(); } catch (Exception ex) { Logger.LogError(ex.Message, ex); await ToastService.ShowToastAsync(ex.Message, ToastType.Error); await ModalDialogCancel(); } }
public async Task DeleteVaultAsync() { try { await WorkstationService.DeleteProximityVaultAsync(WorkstationProximityVault.Id); await ToastService.ShowToastAsync("Vault deleted.", ToastType.Success); await SynchronizationService.UpdateWorkstationDetails(ExceptPageId, WorkstationId); await ModalDialogService.CloseAsync(); } catch (Exception ex) { Logger.LogError(ex.Message, ex); await ToastService.ShowToastAsync(ex.Message, ToastType.Error); await ModalDialogService.CancelAsync(); } }