public void UpdateOfferingWithFacility(DC.OfferingWithFacility request)
 {
     try
     {
         BL.OfferingWithFacilityLogic offeringWithFacilityLogic = new BL.OfferingWithFacilityLogic();
         BE.OfferingWithFacility entity = request.ToBusinessEntity();
         offeringWithFacilityLogic.UpdateOfferingWithFacility(entity);
     }
     catch (BE.FacilityOfferingNotFoundException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = String.Format("Unable to update OfferingWithFacility data for person '{0}' and '{1}'.",
             request.OfferingGuid.ToString(), request.Facility_FacilityGuid.ToString());
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }
 public List<DC.OfferingWithFacility> GetOfferingWithFacilityByOfferingGuid(Guid personGuid)
 {
     try
     {
         BL.OfferingWithFacilityLogic offeringWithFacilityLogic = new BL.OfferingWithFacilityLogic();
         List<BE.OfferingWithFacility> entities = offeringWithFacilityLogic.GetOfferingWithFacilityByOfferingGuid(personGuid);
         List<DC.OfferingWithFacility> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.FacilityOfferingFault fault = new FC.FacilityOfferingFault();
         fault.ErrorMessage = "Unable to retrieve OfferingWithFacility data.";
         throw new FaultException<FC.FacilityOfferingFault>(fault,
             new FaultReason(ex.Message));
     }
 }