示例#1
0
        private async Task <BillModel> UpdateAgencyDetailsRelatedToSadad(BillModel model)
        {
            var govAgencyInfo = await _idmAppService.GetAgencyDetailsRelatedToSadad(model.AgencyCode, model.AgencyType);

            if (govAgencyInfo != null)
            {
                model.ChapterNumber       = !string.IsNullOrEmpty(govAgencyInfo.beneficiaryClassNo) ? govAgencyInfo.beneficiaryClassNo : "000";
                model.BankBranchId        = !string.IsNullOrEmpty(govAgencyInfo.beneficiaryBranchNo) ? govAgencyInfo.beneficiaryBranchNo : "000";
                model.SectionId           = !string.IsNullOrEmpty(govAgencyInfo?.beneficiarySectionNo) ? govAgencyInfo.beneficiarySectionNo : "000";
                model.SequenceNumber      = !string.IsNullOrEmpty(govAgencyInfo.beneficiarySerialNo) ? govAgencyInfo.beneficiarySerialNo : "000";
                model.NumOfSubDepartments = !string.IsNullOrEmpty(govAgencyInfo.managementNoForBeneficiary) ? govAgencyInfo.managementNoForBeneficiary : "000";
                model.NumOfSubSections    = !string.IsNullOrEmpty(govAgencyInfo.sectionNoForBeneficiary) ? govAgencyInfo.sectionNoForBeneficiary : "000";
            }
            return(model);
        }