Ejemplo n.º 1
0
        public void AddPriceList(PriceListModel addedPriceList)
        {
            PriceLists.Add(addedPriceList);

            foreach (var productModel in Products)
            {
                productModel.Prices.Add(new PriceModel
                {
                    ProductId   = productModel.ProductId,
                    PriceListId = addedPriceList.PriceListId
                });
            }

            RaisePropertyChanged(nameof(AddablePriceLists));
        }
Ejemplo n.º 2
0
 public void AddPriceList(object attachment)
 {
     PriceLists.Add((PriceListAttachment)attachment);
 }