Exemple #1
0
 private async Task EditProfileAsync()
 {
     try
     {
         await Button.SpinAsync(async() =>
         {
             await HardwareVaultService.EditProfileAsync(AccessProfile);
             await ToastService.ShowToastAsync("Hardware vault profile updated.", ToastType.Success);
             await ModalDialogClose();
         });
     }
     catch (Exception ex)
     {
         Logger.LogError(ex.Message);
         await ToastService.ShowToastAsync(ex.Message, ToastType.Error);
         await ModalDialogCancel();
     }
 }