public bool Equals(Party otherObj) { return otherObj.Id == this.Id && otherObj.Name == this.Name && otherObj.MandatesCount == this.MandatesCount && otherObj.Type == this.Type; }