diff --git a/src/Banquale/Model/Customer.cs b/src/Banquale/Model/Customer.cs index c26c1e2..6d22590 100644 --- a/src/Banquale/Model/Customer.cs +++ b/src/Banquale/Model/Customer.cs @@ -30,11 +30,10 @@ namespace Model public Customer(string name, string firstName, string password) : base(name, firstName, password) {} - - public bool Equals(Customer? other) + public override bool Equals(object obj) { - if (other == null) return false; - else return other.Id.Equals(Id); + if (obj == null) return false; + else return obj.Equals(this); } public override int GetHashCode()