public bool CompareVote(PoliticianProposal p) { if (p.Vote == this.Vote) { return(true); } return(false); }
public override bool Equals(Object obj) { PoliticianProposal ep = null; try { ep = (PoliticianProposal)obj; } catch { return(base.Equals(obj)); } if (this.IdPolitician == ep.IdPolitician && this.IdProposal == ep.IdProposal) { return(true); } return(false); }