public bool DeleteProductFromBestelling(int index) { ProductenInBestelling productInBestelling = _controller.GetProductenInBestelling(_actieveBestelling.IdBestelling)[index]; return(_controller.DeleteProductenInBestelling(productInBestelling.IdProducten, productInBestelling.IdBestelling)); }
public void addProductenInBestelling(int indexProduct, int aantal) { ProductenInBestelling item = new ProductenInBestelling(_actieveBestelling.IdBestelling, _controller.GetProducten()[indexProduct].IdProduct, aantal); _controller.addProductenInBestelling(item); }