private void AddBallotMeasure(string referendumKey) { var electionKey = GetElectionKey(); var electionKeyState = Elections.GetStateElectionKeyFromKey(electionKey); var stateCode = Elections.GetStateCodeFromKey(electionKey); var countyCode = Elections.GetCountyCodeFromKey(electionKey); var localKey = Elections.GetLocalKeyFromKey(electionKey); var orderOnBallot = Referendums.GetNextOrderOnBallot(electionKey); Referendums.Insert(electionKey, referendumKey, electionKeyState, stateCode, countyCode, localKey, orderOnBallot, Empty, Empty, Empty, Empty, Empty, Empty, false, false, false); }
private void AddBallotMeasure(string referendumKey) { var electionKey = GetElectionKey(); var electionKeyState = Elections.GetStateElectionKeyFromKey(electionKey); var electionKeyCounty = Elections.GetCountyElectionKeyFromKey(electionKey); var electionKeyLocal = Elections.GetLocalElectionKeyFromKey(electionKey); var stateCode = Elections.GetStateCodeFromKey(electionKey); var countyCode = Elections.GetCountyCodeFromKey(electionKey); var localCode = Elections.GetLocalCodeFromKey(electionKey); var orderOnBallot = Referendums.GetNextOrderOnBallot(electionKey); Referendums.Insert(electionKey: electionKey, referendumKey: referendumKey, electionKeyState: electionKeyState, electionKeyCounty: electionKeyCounty, electionKeyLocal: electionKeyLocal, stateCode: stateCode, countyCode: countyCode, localCode: localCode, orderOnBallot: orderOnBallot, referendumTitle: string.Empty, referendumDescription: string.Empty, referendumDetail: string.Empty, referendumDetailUrl: string.Empty, referendumFullText: string.Empty, referendumFullTextUrl: string.Empty, isReferendumTagForDeletion: false, isPassed: false, isResultRecorded: false); }