private async void SaveButton_Click(object sender, RoutedEventArgs e) { var item = new HRsewaTable { FullName = NameInput.Text, Age = int.Parse(AgeInput.Text), EmailID = EmailInput.Text, ContactNo = ContactInput.Text, Nationality = NationalityInput.Text, Issues = IssueInput.Text }; await InsertItem(item); }
private async Task InsertItem(HRsewaTable complain) { // This code inserts a new TodoItem into the database. When the operation completes // and Mobile App backend has assigned an Id, the item is added to the CollectionView. await itemsTable.InsertAsync(complain); await new MessageDialog("Data Saved").ShowAsync(); NameInput.Text = ""; AgeInput.Text = ""; ContactInput.Text = ""; EmailInput.Text = ""; NationalityInput.Text = ""; IssueInput.Text = ""; }