Ejemplo n.º 1
0
 public List<DC.Offering> GetAllOfferingWithUndefined()
 {
     try
     {
         BL.OfferingLogic offeringLogic = new BL.OfferingLogic();
         List<BE.Offering> entities = offeringLogic.GetAllOfferingWithUndefined();
         List<DC.Offering> response = entities.ToDataContractList();
         return response;
     }
     catch (Exception ex)
     {
         FC.DefaultFaultContract fault = new FC.DefaultFaultContract();
         fault.ErrorMessage = "Unable to retrieve offering data.";
         throw new FaultException<FC.DefaultFaultContract>(fault,
             new FaultReason(ex.Message));
     }
 }