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;
        }
        /// <summary>
        /// Method to Get <see cref="AppealsData"/> based on submissionGroupId.
        /// </summary>
        /// <param name="submissionGroupId">The submission group id.</param>
        /// <returns>Returns the <see cref="AppealsData"/> object.</returns>
        internal AppealsData GetAppealsData(string submissionGroupId)
        {
            AppealsData appealsData;

            try
            {
                AppealsGateway appealsGateway = new AppealsGateway();
                CommonGateway commonGateway = new CommonGateway();

                appealsData = new AppealsData();

                appealsData.DCACAInfoEntity = appealsGateway.GetDCACAInfoEntityBySGID(submissionGroupId);
                appealsData.ListLegislationProvisionsEntity = commonGateway.GetListLegislationProvisionsEntityBySGID(submissionGroupId);
                appealsData.ListNatureOfCaseEntity = commonGateway.GetListNatureOfCaseEntityBySGID(submissionGroupId);
                appealsData.ListRefOrderDetailEntity = commonGateway.GetListRefOrderDetailEntityBySGID(submissionGroupId);
            }
            catch (Exception ex)
            {
                Logger.Error("Error at GetAppealsData", ex);
                throw;
            }

            return appealsData;
        }
        /// <summary>
        /// Gets the registrars appeals data by SGID.
        /// </summary>
        /// <param name="submissionGroupId">The submission group id.</param>
        /// <returns></returns>
        internal ISubCaseTypeInfo GetRegistrarsAppealsDataBySGID(string submissionGroupId)
        {
            RegistrarsAppealsData registrarsAppealsData = null;

            try
            {
                AppealsGateway appealsGateway = new AppealsGateway();
                CommonGateway commonGateway = new CommonGateway();

                registrarsAppealsData = new RegistrarsAppealsData();

                registrarsAppealsData.ListLegislationProvisionsEntity = commonGateway.GetListLegislationProvisionsEntityBySGID(submissionGroupId);
                registrarsAppealsData.ListNatureOfCaseEntity = commonGateway.GetListNatureOfCaseEntityBySGID(submissionGroupId);
                registrarsAppealsData.ListRefOrderDetailEntity = commonGateway.GetListRefOrderDetailEntityBySGID(submissionGroupId);
                registrarsAppealsData.RARASInfoEntity = appealsGateway.GetRARASInfoEntityBySGID(submissionGroupId);
            }
            catch (Exception ex)
            {
                Logger.Error("Error at GetAppealsData", ex);
                throw;
            }

            return registrarsAppealsData;
        }