private async void CreateCase_Click(object sender, RoutedEventArgs e) { await SqliteContext.CreateIssueAsync( new Issue { GuidId = Guid.NewGuid(), Title = TitleBox.ToString(), Status = cmbStatus.SelectedItem.ToString(), CustomerId = await SqliteContext.GetCustomerIdByNameAsync(cmbCustomers.SelectedItem.ToString()) } ); await LoadIssuesAsync(); }