Beispiel #1
0
        private async void Save()
        {
            string x = DateTime.Now.ToString("yyyy:MM:dd:HH:mm:ss");

            UserDialogs.Instance.ShowLoading("Espere");
            stream?.Seek(0, SeekOrigin.Begin);
            await ServiceWebApi.UpdateUser(App.User, stream, x);

            App.User = await ServiceWebApi.GetUser(App.User.IdUser.Value, x);

            UserDialogs.Instance.HideLoading();
            MainViewModels.GetInstance().Home = new HomeViewModel();
            await App.Current.MainPage.DisplayAlert("Información", "Perfil actualizado", "Aceptar");

            await App.Current.MainPage.Navigation.PopAsync();
        }