public async void OnButtonClickAddCitation(object sender, EventArgs e) { if (citationReason.SelectedItem == null) { await DisplayAlert("Error", "Required Field Incorrect or Missing", "Ok"); return; } else { var person = await firebaseHelper.GetUserByLisencePlate(searchLisencePlate.Text); await firebaseHelper.AddCitation(vehicleInfo.Text, searchLisencePlate.Text, person.StudentID, personName.Text, citationReason.SelectedItem.ToString()); //NOTIFY USER string subject = "Citation Alert"; string body = "Attention " + person.FirstName + " " + person.LastName + ", \n\n Your vehicle was citated!\n" + "Vehicle Information: " + vehicleInfo.Text + "\n" + "License Plate: " + searchLisencePlate.Text + "\n" + "Reason for Citation: " + citationReason.SelectedItem.ToString() + "\n" + "Please Pay at: LINK HERE\n For more information please contact Parking Services at 999-999-9999."; string email = person.Email; bool isSent = false; if (isSent == false) { await Email.ComposeAsync(subject, body, email); isSent = true; } else if (isSent == true) { await DisplayAlert("Confirmation", "Citation Submitted", "Ok"); } //CLEAR PAGE searchLisencePlate.Text = ""; vehicleInfo.Text = ""; personName.Text = ""; vinNumber.Text = ""; citationReason.SelectedIndex = -1; } }