internal void Create() { if (ActiveVoting != null) { throw new Exception("Активное голосование уже существует."); } ActiveVoting = new ActiveVoting(); }
internal void Close() { _votingHistoryService.Close(new ClosedVoting(ActiveVoting.StartDate, ActiveVoting.EndDate, ActiveVoting.VoteMap)); ActiveVoting = null; }
public VotingEventArgs(ActiveVoting activeVoting) { ActiveVoting = activeVoting ?? throw new ArgumentNullException(); }