Esempio n. 1
0
        public void Candidate(Party party, PartyMember member)
        {
            var voting = party.PartyPresidentVotings.Last();
            PartyPresidentCandidate candidate = new PartyPresidentCandidate()
            {
                Citizen = member.Citizen,
                PartyPresidentVoting = voting
            };

            partyRepository.AddPresidentCandidate(candidate);
            partyRepository.SaveChanges();
        }