Exemplo n.º 1
0
 public void UpdateFacilityWithCityStateZip(DC.FacilityWithCityStateZip request)
 {
     try
     {
         BL.FacilityWithCityStateZipLogic facilityWithCityStateZipLogic = new BL.FacilityWithCityStateZipLogic();
         BE.FacilityWithCityStateZip entity = request.ToBusinessEntity();
         facilityWithCityStateZipLogic.UpdateFacilityWithCityStateZip(entity);
     }
     catch (BE.FacilityLocationCriteriaNotFoundException ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = String.Format("Unable to update FacilityWithCityStateZip data for person '{0}' and '{1}'.",
             request.FacilityGuid.ToString(), request.CityStateZip_CityStateZipGuid.ToString());
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }