protected override string GetCurrentValue() { var column = ElectionsDefaults.GetColumn(Column); var defaultElectionKey = Elections.GetDefaultElectionKeyFromKey(_Page.GetElectionKey()); var value = ElectionsDefaults.GetColumn(column, defaultElectionKey); return(value == null ? string.Empty : ToDisplay(value)); }
protected override string GetCurrentValue() { var column = Elections.GetColumn(Column); var electionKey = Page.GetElectionKey(); var value = Elections.GetColumn(column, electionKey); if ((value == null) && !Elections.IsStateElection(electionKey)) { value = Elections.GetColumn(column, Elections.GetStateElectionKeyFromKey(electionKey)); } return(value == null ? string.Empty : ToDisplay(value)); }