change validation text
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user