Пример #1
0
 public List<DC.ListingType> GetAllListingType()
 {
     try
     {
         BL.ListingTypeLogic listingTypeLogic = new BL.ListingTypeLogic();
         List<BE.ListingType> entities = listingTypeLogic.GetAllListingType();
         List<DC.ListingType> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve listingType data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #2
0
 public List<DC.PaymentInfoAudit> GetAllPaymentInfoAudit()
 {
     try
     {
         BL.PaymentInfoAuditLogic paymentInfoAuditLogic = new BL.PaymentInfoAuditLogic();
         List<BE.PaymentInfoAudit> entities = paymentInfoAuditLogic.GetAllPaymentInfoAudit();
         List<DC.PaymentInfoAudit> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve paymentInfoAudit data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #3
0
 public List<DC.Client> GetAllClientWithUndefined()
 {
     try
     {
         BL.ClientLogic clientLogic = new BL.ClientLogic();
         List<BE.Client> entities = clientLogic.GetAllClientWithUndefined();
         List<DC.Client> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve client data.";
         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 List<DC.CityStateZipWithFacility> GetAllCityStateZipWithFacility()
 {
     try
     {
         BL.CityStateZipWithFacilityLogic cityStateZipWithFacilityLogic = new BL.CityStateZipWithFacilityLogic();
         List<BE.CityStateZipWithFacility> entities = cityStateZipWithFacilityLogic.GetAllCityStateZipWithFacility();
         List<DC.CityStateZipWithFacility> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve CityStateZipWithFacility data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #6
0
 public List<DC.FacilityLocationCriteria> GetAllFacilityLocationCriteria()
 {
     try
     {
         BL.FacilityLocationCriteriaLogic facilityLocationCriteriaLogic = new BL.FacilityLocationCriteriaLogic();
         List<BE.FacilityLocationCriteria> entities = facilityLocationCriteriaLogic.GetAllFacilityLocationCriteria();
         List<DC.FacilityLocationCriteria> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve facilityLocationCriteria data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #7
0
        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));
            }
        }
Пример #8
0
        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));
            }
        }
Пример #9
0
 public List<DC.Click> GetClicksForListingTypeByListingTypeGuid(Guid listingTypeGuid)
 {
     try
     {
         BL.ClickLogic clickLogic = new BL.ClickLogic();
         List<BE.Click> entities = clickLogic.GetClicksForListingTypeByListingTypeGuid(listingTypeGuid);
         List<DC.Click> response = entities.ToDataContractList();
         return response;
     }
     catch (BE.ClickException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = string.Format("Unable to find a Click with the given ListingType");
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #10
0
 public List<DC.Offering> GetAllOffering()
 {
     try
     {
         BL.OfferingLogic offeringLogic = new BL.OfferingLogic();
         List<BE.Offering> entities = offeringLogic.GetAllOffering();
         List<DC.Offering> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve offering data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #11
0
 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));
     }
 }
Пример #12
0
        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));
            }
        }
Пример #13
0
 public List<DC.Client> GetClientsForPaymentInfoByPaymentInfoGuid(Guid paymentInfoGuid)
 {
     try
     {
         BL.ClientLogic clientLogic = new BL.ClientLogic();
         List<BE.Client> entities = clientLogic.GetClientsForPaymentInfoByPaymentInfoGuid(paymentInfoGuid);
         List<DC.Client> response = entities.ToDataContractList();
         return response;
     }
     catch (BE.ClientException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = string.Format("Unable to find a Client with the given PaymentInfo");
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #14
0
        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));
            }
        }
Пример #15
0
        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));
            }
        }
Пример #16
0
        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));
            }
        }
Пример #17
0
 public List<DC.ClientAudit> GetClientAuditsForCityStateZipByCityStateZipGuid(Guid cityStateZipGuid)
 {
     try
     {
         BL.ClientAuditLogic clientAuditLogic = new BL.ClientAuditLogic();
         List<BE.ClientAudit> entities = clientAuditLogic.GetClientAuditsForCityStateZipByCityStateZipGuid(cityStateZipGuid);
         List<DC.ClientAudit> response = entities.ToDataContractList();
         return response;
     }
     catch (BE.ClientAuditException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = string.Format("Unable to find a ClientAudit with the given CityStateZip");
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #18
0
        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));
            }
        }
Пример #19
0
 public List<DC.FacilityAudit> GetFacilityAuditsForFacilityByFacilityGuid(Guid facilityGuid)
 {
     try
     {
         BL.FacilityAuditLogic facilityAuditLogic = new BL.FacilityAuditLogic();
         List<BE.FacilityAudit> entities = facilityAuditLogic.GetFacilityAuditsForFacilityByFacilityGuid(facilityGuid);
         List<DC.FacilityAudit> response = entities.ToDataContractList();
         return response;
     }
     catch (BE.FacilityAuditException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = string.Format("Unable to find a FacilityAudit with the given Facility");
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
Пример #20
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));
     }
 }
Пример #21
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));
     }
 }
Пример #22
0
        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));
            }
        }