コード例 #1
0
ファイル: Client.cs プロジェクト: ankit-defacto/PSS
        public void DeleteClient(DC.Client request)
        {
            try
            {
                BL.ClientLogic clientLogic = new BL.ClientLogic();
                BE.Client entity = request.ToBusinessEntity();
                clientLogic.DeleteClient(entity);
            }
            catch (BE.ClientNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to delete Client data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #2
0
ファイル: PaymentInfo.cs プロジェクト: ankit-defacto/PSS
        public void DeletePaymentInfo(DC.PaymentInfo request)
        {
            try
            {
                BL.PaymentInfoLogic paymentInfoLogic = new BL.PaymentInfoLogic();
                BE.PaymentInfo entity = request.ToBusinessEntity();
                paymentInfoLogic.DeletePaymentInfo(entity);
            }
            catch (BE.PaymentInfoNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to delete Payment Info data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #3
0
 public void UpdateCityStateZipWithFacility(DC.CityStateZipWithFacility request)
 {
     try
     {
         BL.CityStateZipWithFacilityLogic cityStateZipWithFacilityLogic = new BL.CityStateZipWithFacilityLogic();
         BE.CityStateZipWithFacility entity = request.ToBusinessEntity();
         cityStateZipWithFacilityLogic.UpdateCityStateZipWithFacility(entity);
     }
     catch (BE.FacilityLocationCriteriaNotFoundException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = String.Format("Unable to update CityStateZipWithFacility data for person '{0}' and '{1}'.",
             request.CityStateZipGuid.ToString(), request.Facility_FacilityGuid.ToString());
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
コード例 #4
0
 public void DeleteFacilityLocationCriteria(DC.FacilityLocationCriteria request)
 {
     try
     {
         BL.FacilityLocationCriteriaLogic facilityLocationCriteriaLogic = new BL.FacilityLocationCriteriaLogic();
         BE.FacilityLocationCriteria entity = request.ToBusinessEntity();
         facilityLocationCriteriaLogic.DeleteFacilityLocationCriteria(entity);
     }
     catch (BE.FacilityLocationCriteriaNotFoundException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = String.Format("Unable to delete FacilityLocationCriteria data for FacilityGuid '{0}' and CityStateZipGuid '{1}'.",
             request.FacilityGuid.ToString(), request.CityStateZipGuid.ToString());
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
コード例 #5
0
 public void UpdateFacilityWithOffering(DC.FacilityWithOffering request)
 {
     try
     {
         BL.FacilityWithOfferingLogic facilityWithOfferingLogic = new BL.FacilityWithOfferingLogic();
         BE.FacilityWithOffering entity = request.ToBusinessEntity();
         facilityWithOfferingLogic.UpdateFacilityWithOffering(entity);
     }
     catch (BE.FacilityOfferingNotFoundException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = String.Format("Unable to update FacilityWithOffering data for person '{0}' and '{1}'.",
             request.FacilityGuid.ToString(), request.Offering_OfferingGuid.ToString());
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
コード例 #6
0
ファイル: PaymentInfoAudit.cs プロジェクト: ankit-defacto/PSS
        public void InsertPaymentInfoAudit(DC.PaymentInfoAudit request)
        {
            try
            {
                BL.PaymentInfoAuditLogic paymentInfoAuditLogic = new BL.PaymentInfoAuditLogic();
                BE.PaymentInfoAudit entity = request.ToBusinessEntity();
                paymentInfoAuditLogic.InsertPaymentInfoAudit(entity);
            }
            catch (BE.PaymentInfoAuditAlreadyExistsException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to insert Payment Info Audit data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #7
0
ファイル: Click.cs プロジェクト: ankit-defacto/PSS
        public void InsertClick(DC.Click request)
        {
            try
            {
                BL.ClickLogic clickLogic = new BL.ClickLogic();
                BE.Click entity = request.ToBusinessEntity();
                clickLogic.InsertClick(entity);
            }
            catch (BE.ClickAlreadyExistsException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to insert Click data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #8
0
ファイル: FacilityAudit.cs プロジェクト: ankit-defacto/PSS
        public void UpdateFacilityAudit(DC.FacilityAudit request)
        {
            try
            {
                BL.FacilityAuditLogic facilityAuditLogic = new BL.FacilityAuditLogic();
                BE.FacilityAudit entity = request.ToBusinessEntity();
                facilityAuditLogic.UpdateFacilityAudit(entity);
            }
            catch (BE.FacilityAuditNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to update Facility Audit data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #9
0
ファイル: ListingType.cs プロジェクト: ankit-defacto/PSS
        public void UpdateListingType(DC.ListingType request)
        {
            try
            {
                BL.ListingTypeLogic listingTypeLogic = new BL.ListingTypeLogic();
                BE.ListingType entity = request.ToBusinessEntity();
                listingTypeLogic.UpdateListingType(entity);
            }
            catch (BE.ListingTypeNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to update Listing Type data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #10
0
ファイル: FacilityOffering.cs プロジェクト: ankit-defacto/PSS
 public void InsertFacilityOffering(DC.FacilityOffering request)
 {
     try
     {
         BL.FacilityOfferingLogic facilityOfferingLogic = new BL.FacilityOfferingLogic();
         BE.FacilityOffering entity = request.ToBusinessEntity();
         facilityOfferingLogic.InsertFacilityOffering(entity);
     }
     catch (BE.FacilityOfferingAlreadyExistsException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = String.Format("Unable to insert FacilityOffering data for FacilityGuid '{0}' and OfferingGuid '{1}'.",
             request.FacilityGuid.ToString(), request.OfferingGuid.ToString());
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
コード例 #11
0
ファイル: Offering.cs プロジェクト: ankit-defacto/PSS
        public void UpdateOffering(DC.Offering request)
        {
            try
            {
                BL.OfferingLogic offeringLogic = new BL.OfferingLogic();
                BE.Offering entity = request.ToBusinessEntity();
                offeringLogic.UpdateOffering(entity);
            }
            catch (BE.OfferingNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to update Offering data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }
コード例 #12
0
ファイル: CityStateZip.cs プロジェクト: ankit-defacto/PSS
        public void UpdateCityStateZip(DC.CityStateZip request)
        {
            try
            {
                BL.CityStateZipLogic cityStateZipLogic = new BL.CityStateZipLogic();
                BE.CityStateZip entity = request.ToBusinessEntity();
                cityStateZipLogic.UpdateCityStateZip(entity);
            }
            catch (BE.CityStateZipNotFoundException ex)
            {
                FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
                fault.ErrorMessage = String.Format(
                    "Unable to update City State Zip data. Data: {0}",
                    request.ToBusinessEntity().ToString());

                throw new FaultException<FC.DefaultFaultContract>(fault,
                    new FaultReason(ex.Message));
            }
        }