private async void btnSaveIssue_Click(object sender, RoutedEventArgs e) { await SqliteContext.CreateIssueAsync(new Issue { CustomerId = await SqliteContext.GetCustomerIdByNames(cmbCustomer.SelectedItem.ToString()), Titel = tbTitel.Text, Description = tbDescription.Text, Category = cbCategory.SelectedItem.ToString() }); tbTitel.Text = ""; cbCategory.Text = ""; tbDescription.Text = "Case Added"; }