I have a StockModule and a PurchaseModule. When I receive a new purchase, I add that to the Stock Model in the database.
My problem is that I have an ObservableCollection stockList in the ViewModel in my StockModule and the controller that adds the stock is in the PurchaseModule. I don't know how I'm supposed to tell the ViewVodel in the StockModule that I have updated the stockList already.
I am using databinding in wpf and prism with unity. Updating the view within a module is easy enough but I haven't found a way to do it between two modules.
Should I pass a reference to the StockController when I initialize my PurchaseModule? I don't want to do that because that seems too tightly coupled.