Beispiel #1
0
        public static OfferingCollection GetOfferingCollection()
        {
            var toReturn = new OfferingCollection();
            IPredicateExpression filter    = new PredicateExpression();
            IRelationCollection  relations = new RelationCollection();

            toReturn.GetMulti(filter, 0, null, relations);
            return(toReturn);
        }
 public static OfferingCollection GetOfferingsWithUndefined()
 {
     // Call the service for data.
     SP.OfferingSvc.Offering[] offerings = _offeringClient.GetAllOfferingWithUndefined();
     // Convert the service proxy object to a View Model object.
     OfferingCollection result = new OfferingCollection(offerings.ToViewModels());
     return result;
 }
 public static OfferingCollection GetOfferingsNotForFacility(Guid facilityGuid)
 {
     SP.OfferingSvc.Offering[] offerings = _offeringClient.GetOfferingsNotForFacility(facilityGuid);
     OfferingCollection result = new OfferingCollection(offerings.ToViewModels());
     return result;
 }