public async Task ExecuteSaveProfileCommandAsync() { if (IsBusy) { return; } ProgressDialogManager.LoadProgressDialog("Loading..."); try { IsBusy = true; await ParseAccess.UpdateProfile(UserDetail); UserDialogs.Instance.Toast("Profile updated.", TimeSpan.FromSeconds(3)); } catch (Exception e) { Debug.WriteLine(e); } finally { IsBusy = false; ProgressDialogManager.DisposeProgressDialog(); } }
public async Task UpdateInfo(User user) { try { await ParseAccess.UpdateProfile(user); } catch (Exception e) { Debug.WriteLine(e); } }