public CottagerViewModel(UnitOfWork unitOfWork, List <Month> monthList, int monthID, CottagerView view) { _instanceWindow = view; _selectedMonthId = monthID; _UnitOfWork = unitOfWork; RefreshList(_selectedMonthId); _PumpStationBL = new PumpStationBL(_UnitOfWork); _MothList = monthList; }
public void RefreshList(int monthId) { PumpStationBL bl = new PumpStationBL(_UnitOfWork); bl.FeelCottagersInfoList(_CottagerInfoList, _selectedMonthId); }