protected override bool Update(object newValue) { var column = ElectionsDefaults.GetColumn(Column); var defaultElectionKey = Elections.GetDefaultElectionKeyFromKey(_Page.GetElectionKey()); ElectionsDefaults.UpdateColumn(column, newValue, defaultElectionKey); return(true); }
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)); }