private async Task CreateMyQuiz_Clicked(object sender, EventArgs e) { create.BackgroundColor = Color.LightCyan; AzureServiceQuiz az_serv = new AzureServiceQuiz(); var quiz = new Quiz { regNo = myregno, myClass = myclass, myCourse = mycourse, myLectureNo = MyLectId.Text, questionid = MyQuesId.Text, questionName = MyQuesName.Text, option1 = Op1.Text, option2 = Op2.Text, option3 = Op3.Text, option4 = Op4.Text }; IsBusy = true; try { await az_serv.AddQuiz(quiz); await DisplayAlert("Success", "Quiz has been created and uploaded to Cloud", "OK"); } catch (Exception ex) { await DisplayAlert("Error", "Couldnot create quiz.", "Back"); } finally { IsBusy = false; await Navigation.PushModalAsync(new NavigationPage(new SaintMainScreen(myuser))); } }