fix(EnvelopeReceiverBase): HasPhoneNumber getter Methode aktualisiert, um false nicht nur für null, sondern auch für Leerzeichen zurückzugeben.

This commit is contained in:
Developer 02 2025-02-11 15:42:00 +01:00
parent 6eac92b7cb
commit 0090fc0dfa

View File

@ -50,6 +50,6 @@ namespace EnvelopeGenerator.Domain.Entities
public (int Envelope, int Receiver) Id => (Envelope: EnvelopeId, Receiver: ReceiverId);
[NotMapped]
public bool HasPhoneNumber => PhoneNumber is not null;
public bool HasPhoneNumber => !string.IsNullOrWhiteSpace(PhoneNumber);
}
}