🐛 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 Customer(string name, string firstName, string password) : base(name, firstName, password)
{} {}
public override bool Equals(object obj)
public bool Equals(Customer? other)
{ {
if (other == null) return false; if (obj == null) return false;
else return other.Id.Equals(Id); else return obj.Equals(this);
} }
public override int GetHashCode() public override int GetHashCode()

Loading…
Cancel
Save