change validation text

This commit is contained in:
2025-09-30 16:49:50 +03:30
parent 39d887c4c3
commit e49f635b4e

View File

@@ -946,7 +946,7 @@ public class InstitutionContractApplication : IInstitutionContractApplication
_institutionContractRepository.Exists(x=> x.IsActiveString =="true" &&
x.ContractStartGr < contractEndGr && contractStartGr < x.ContractEndGr))
throw new BadRequestException("امکان ایجاد قرارداد تکراری وجود ندارد");
}
else if(command.ContractingPartyLegalType == LegalType.Real)
{
@@ -954,8 +954,7 @@ public class InstitutionContractApplication : IInstitutionContractApplication
x.LName == command.RealParty.LName && x.Nationalcode == command.RealParty.NationalCode)&&
_institutionContractRepository.Exists(x=> x.IsActiveString =="true" &&
x.ContractStartGr < contractEndGr && contractStartGr < x.ContractEndGr))
throw new BadRequestException("امکان ثبت رکورد تکراری وجود ندارد");
throw new BadRequestException("امکان ایجاد قرارداد تکراری وجود ندارد");
}
OperationResult<PersonalContractingParty> contractingPartyResult = command.ContractingPartyLegalType switch
{