private void Reconcile(ListInventoryItemViewModel model) { const string uri = "/views/ReconcileGenerics/ReconcileGenerics.xaml"; ProductId = model.Id; NavigateCommand.Execute(uri); }
public void AddLineItem(Guid productId, string productdescription, int qty) { if (LineItems.Any(p => p.Id == productId)) { var liupdate = LineItems.First(p => p.Id == productId); liupdate.Quantity = qty; } else { ListInventoryItemViewModel li = new ListInventoryItemViewModel { Quantity = qty, Id = productId, ProductDescription = productdescription }; LineItems.Add(li); } }