public static void SetNbVote(this Idee idee, int newNbVotes) { if (idee.NombreVotes == newNbVotes) { return; } idee.NombreVotes = newNbVotes; idee.Modify(); }
private static void SetEtat(this Idee idee, EtatsIdees newEtat) { if (idee.EtatIdee == newEtat) { return; } idee.EtatIdee = newEtat; idee.Modify(); }