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)); }
public void AddPriceList(object attachment) { PriceLists.Add((PriceListAttachment)attachment); }