private async Task Delete() { bool confirm = await App.Current.MainPage.DisplayAlert("Please Confirm", "Do You Really Want to delete this Item", "Yes", "No"); if (confirm) { bool result = await UniversityServiceApi.DeleteItem <Students>(controller, st.id); if (result) { await App.Current.MainPage.DisplayAlert("Success!", "The student was Deleted successfuly!", "Ok"); await App.Current.MainPage.Navigation.PopAsync(); } else { await App.Current.MainPage.DisplayAlert("Failed!", "The student was NOT Deleted!", "Ok"); } } }