🐛 Update overriding of Equals method
continuous-integration/drone/push Build is failing Details

master
Antoine PEREDERII 1 year ago
parent 1cec6f4536
commit 808a070981

@ -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()

Loading…
Cancel
Save