Example #1
0
 public List<DC.FacilityOffering> GetAllFacilityOffering()
 {
     try
     {
         BL.FacilityOfferingLogic facilityOfferingLogic = new BL.FacilityOfferingLogic();
         List<BE.FacilityOffering> entities = facilityOfferingLogic.GetAllFacilityOffering();
         List<DC.FacilityOffering> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve facilityOffering data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }