protected override bool Update(object newValue) { var isResultRecorded = false; var isPassed = false; switch (newValue as string) { case "unknown": // defaults are ok break; case "passed": isResultRecorded = true; isPassed = true; break; case "defeated": isResultRecorded = true; break; default: return(false); } Referendums.UpdateIsResultRecorded(isResultRecorded, Page.GetElectionKey(), Page.GetBallotMeasureKey()); Referendums.UpdateIsPassed(isPassed, Page.GetElectionKey(), Page.GetBallotMeasureKey()); if (ChangesList) { ListChanged = true; } return(true); }