async void schedule(Object o, EventArgs e) { DatabasePOST conn = new DatabasePOST(); await conn.postMaintenance((scheduledDate.Date).ToString(), CurrentUser.ID, ID); await Navigation.PushModalAsync(new EmployeeMain()); }
async void submitClick(object sender, EventArgs e) { DatabasePOST conn = new DatabasePOST(); await conn.postMaintenance(CurrentUser.ID, summary.Text, explanation.Text); summary.Text = ""; explanation.Text = ""; await DisplayAlert("Success", "Maintenance request submitted", "OK"); }