private async void btnCreateProduct_Click(object sender, RoutedEventArgs e) { _productId = await SQLiteContext.CreateProductAsync(new Product { Name = "Iphone-" + Guid.NewGuid().ToString(), Description = "Iphone (89guuy)", Price = 4800, Status = "closed" }); _productId = await SQLiteContext.CreateProductAsync(new Product { Name = "Tavla-" + Guid.NewGuid().ToString(), Description = "", Price = 290, Status = "new" }); await LoadProductsAsync(); }
private async void btnAddProduct_Click(object sender, RoutedEventArgs e) { await SQLiteContext.CreateProductAsync(new Product()); //nån fel här }