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

            if (result)
            {
                await App.Current.MainPage.DisplayAlert("Success!", "The Student Was Added Successfuly!", "Ok");
            }
            else
            {
                await App.Current.MainPage.DisplayAlert("Failed!", "The Student Was NOT Added!", "Ok");
            }
        }