Exemplo n.º 1
0
        private PartyPresidentVoting CreateNewPresidentVoting(Entities.Party party, int votingDay)
        {
            PartyPresidentVoting voting = new PartyPresidentVoting()
            {
                Party          = party,
                VotingDay      = votingDay,
                VotingStatusID = (int)VotingStatusEnum.NotStarted,
            };

            partyRepository.AddPartyPresidentVoting(voting);

            partyRepository.SaveChanges();


            return(voting);
        }