Handle "*" in NationalCode assignment gracefully

Updated the `NationalCode` assignment in the `CreateInstitutionContractLegalPartyRequest` object to replace `"*"` with an empty string (`string.Empty`). This ensures compliance with business rules where `"*"` is not considered a valid value for `NationalCode`. Retains the original value otherwise.
This commit is contained in:
2025-12-02 14:40:54 +03:30
parent 3df296f205
commit 90aa6058f0

View File

@@ -1999,7 +1999,7 @@ public class InstitutionContractRepository : RepositoryBase<long, InstitutionCon
{
legalPartyRequest = new CreateInstitutionContractLegalPartyRequest()
{
NationalCode = contractingParty.Nationalcode,
NationalCode = contractingParty.Nationalcode=="*"?string.Empty:contractingParty.Nationalcode,
BirthDateFa = contractingParty.DateOfBirth.ToFarsi(),
PhoneNumber = contractingParty.Phone,
FatherName = contractingParty.FatherName,