private async void BtnAdd_Clicked(object sender, EventArgs e) { var result = new Result { Arabic = Convert.ToInt32(EntryArabic.Text), English = Convert.ToInt32(EntryEnglish.Text), Maths = Convert.ToInt32(EntryMaths.Text), Sociology = Convert.ToInt32(EntrySociology.Text), Total = total, StudentId = StudentId, Success = EntrySuccess.Text }; ApiService.AddResult(result); }