internal BankruptcyData GetBankruptcyDataBySGID(string submissionGroupId) { BankruptcyData bankruptcyData = new BankruptcyData(); CommonGateway commongateway = new CommonGateway(); bankruptcyData.BankruptcyInfoEntity = GetBankruptcyInfoBySGID(submissionGroupId); bankruptcyData.ListBankruptcyOtherDefDetailEntity = GetListBankruptcyOtherDefDetailBySGID(submissionGroupId); bankruptcyData.ListLegislationProvisionsEntity = commongateway.GetListLegislationProvisionsEntityBySGID(submissionGroupId); bankruptcyData.ListNatureOfCaseEntity = commongateway.GetListNatureOfCaseEntityBySGID(submissionGroupId); bankruptcyData.ListOtherITMOEntity = commongateway.GetListOtherITMOEntityBySGID(submissionGroupId); bankruptcyData.ListPrayerEntity = commongateway.GetListPrayerEntityBySGID(submissionGroupId); return bankruptcyData; }
internal void SaveOrUpdateBankruptcyData(BankruptcyData bankruptcyData) { SaveOrUpdateBankruptcyInfoEntity(bankruptcyData.BankruptcyInfoEntity); SaveOrUpdateListBankruptcyOtherDefDetail(bankruptcyData.ListBankruptcyOtherDefDetailEntity); //SaveOrUpdateListNoOfSupportingDoc(bankruptcyData.ListNoOfSupportingDocEntity); }