Example #1
0
        public static void SetNbVote(this Idee idee, int newNbVotes)
        {
            if (idee.NombreVotes == newNbVotes)
            {
                return;
            }

            idee.NombreVotes = newNbVotes;
            idee.Modify();
        }
Example #2
0
        private static void SetEtat(this Idee idee, EtatsIdees newEtat)
        {
            if (idee.EtatIdee == newEtat)
            {
                return;
            }

            idee.EtatIdee = newEtat;
            idee.Modify();
        }