private void OnApplicationStateRequested(ApplicationStateRequestedMessage message) { bool noCriteria = Criteria == null; var filterState = new PersistentFiltersApplicationState { BeginDate = noCriteria ? null : Criteria.BeginDate, EndDate = noCriteria ? null : Criteria.EndDate, }; message.PersistThisModel(filterState); }
private void OnApplicationStateRequested(ApplicationStateRequestedMessage message) { message.PersistThisModel(this.chartsService.PreparePersistentStateData()); }
private void OnApplicationStateRequested(ApplicationStateRequestedMessage message) { StatementApplicationState statementMetadata = this.transactionService.PreparePersistentStateData(); message.PersistThisModel(statementMetadata); }