public virtual void UpdateDst(Stock stock) { DstStock.RetailCost = stock.RetailCost; DstStock.RetailMarkup = stock.RetailMarkup; RetailCost = stock.RetailCost; OnPropertyChanged(nameof(RegistryCost)); RetailMarkup = stock.RetailMarkup; OnPropertyChanged(nameof(RetailMarkup)); OnPropertyChanged(nameof(RetailSum)); var quantity = stock.Quantity; SrcStock.Release(Quantity); SrcStock.Reserve(quantity); DstStock.Release(Quantity); DstStock.Reserve(quantity); Quantity = quantity; }
public virtual void UpdateQuantity(decimal quantity) { SrcStock.Release(Quantity); SrcStock.Reserve(quantity); Quantity = quantity; }