protected override void RestoreState(IApplicationStateService applicationStateService) { base.RestoreState(applicationStateService); if (applicationStateService.HasValueFor(nameof(this.StartDate), ApplicationState.Temp)) this.StartDate = applicationStateService.Get<DateTimeOffset>(nameof(this.StartDate), ApplicationState.Temp); if (applicationStateService.HasValueFor(nameof(this.EndDate), ApplicationState.Temp)) this.EndDate = applicationStateService.Get<DateTimeOffset>(nameof(this.EndDate), ApplicationState.Temp); }