diff --git a/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs b/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs index f4864441..992e9808 100644 --- a/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs +++ b/CompanyManagment.App.Contracts/ContractingPartyBankAccounts/IContractingPartyBankAccountsApplication.cs @@ -90,7 +90,7 @@ public class InquiryContractingPartyBankDetailsRequest public string CardNumber { get; set; } public string AccountNumber { get; set; } public string IBan { get; set; } - public UidBanks UidBank { get; set; } + public UidBanks? UidBank { get; set; } } public class ContractingPartyBankInquiryResponse { diff --git a/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs b/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs index e1e1dc0a..c06e5729 100644 --- a/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs +++ b/CompanyManagment.Application/ContractingPartyBankAccountsApplication.cs @@ -193,7 +193,7 @@ public class ContractingPartyBankAccountsApplication : IContractingPartyBankAcco } else if (!string.IsNullOrWhiteSpace(accountNumber)) { - var accountNumberRes = await _uidService.AccountToIban(accountNumber, uidBank); + var accountNumberRes = await _uidService.AccountToIban(accountNumber, uidBank.Value); if (accountNumberRes.ResponseContext.Status.Code != 0) { throw new BadRequestException(