private void AddProduct(object parameter) { var rec = new TransactionBodyListEntity(); rec.Product = new ProductEntity(); rec.Product.Id = SelectedProduct.Id; rec.Product.Name = SelectedProduct.Name; rec.Product.Code = SelectedProduct.Code; rec.Product.CostPrice = SelectedProduct.CostPrice; rec.Product.SellPrice = SelectedProduct.SellPrice; rec.Body = new TransactionBodyEntity(); rec.Body.ProductId = SelectedProduct.Id; rec.Body.Price = ProductPrice; rec.Body.Quantity = ProductQuantity; TransactionBody.Add(new BindableTransactionBodyListEntity(rec)); }
public BindableTransactionBodyListEntity(TransactionBodyListEntity item) { Item = item; }