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