Пример #1
0
        /// <summary>
        /// Method to SaveOrUpdate <see cref="AppealsData"/>
        /// </summary>
        /// <param name="appealsData">The <see cref="AppealsData"/> object.</param>
        internal void SaveOrUpdateAppealsData(AppealsData appealsData)
        {
            try
            {
                AppealsGateway appealsGateway = new AppealsGateway();
                CommonGateway commonGateway = new CommonGateway();

                appealsGateway.SaveOrUpdateDCACAInfoEntity(appealsData.DCACAInfoEntity);
                commonGateway.SaveOrUpdateLegislationProvisionsList(appealsData.ListLegislationProvisionsEntity);
                commonGateway.SaveOrUpdateNatureOfCaseList(appealsData.ListNatureOfCaseEntity);
                commonGateway.SaveOrUpdateRefOrderDetailList(appealsData.ListRefOrderDetailEntity);
                commonGateway.SaveOrUpdateOtherITMOList(appealsData.ListOtherITMOEntity);
            }
            catch (Exception ex)
            {
                Logger.Error("Error at SaveOrUpdateAppealsData", ex);
                throw;
            }
        }