public override bool Equals(System.Object otherClient) { if (!(otherClient is Client)) { return(false); } else { Client newClient = (Client)otherClient; bool idEquality = (this.GetId() == newClient.GetId()); bool nameEquality = (this.GetClientName() == newClient.GetClientName()); bool detailsEquality = (this.GetClientDetails() == newClient.GetClientDetails()); bool clientStylistIdEquality = (this.GetClientStylistId() == newClient.GetClientStylistId()); return(idEquality && nameEquality && detailsEquality && clientStylistIdEquality); } }