private async void CreateCases_Click(object sender, RoutedEventArgs e) { await SqliteContext.CreateCaseAsync( new Case { Title = TbTitle.Text, Description = TbDescription.Text, CustomerId = await SqliteContext.GetCustomerIdByName(cmbCustomers.SelectedItem.ToString()) }); await LoadCasesAsync(); }