Ejemplo n.º 1
0
        private async Task Update()
        {
            bool result = await UniversityServiceApi.UpdateItem <Students>(controller, st, st.id);

            if (result)
            {
                await App.Current.MainPage.DisplayAlert("Success!", "The student was updated successfuly!", "Ok");

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

            else
            {
                await App.Current.MainPage.DisplayAlert("Failed!", "The student was NOT updated!", "Ok");
            }
        }