示例#1
0
 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));
     }
 }