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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }
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)); } }