/// <summary> /// Retrieves a collection of <see cref="!:PromotionModel" /> instances. /// </summary> /// <param name="approverId"> /// The value which identifies the <see cref="!:PromotionModel" /> instances to be returned. /// </param> /// <returns> /// The <see cref="!:PromotionModel" /> instances that match the specified <paramref name="approverId" />. /// </returns> public static IEnumerable <Consensus.Marketing.Promotion> FetchAllByApproverId(System.String approverId) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Promotion.FetchAllByApproverId(site, approverId)); }
public static System.String GetTableName() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Promotion.GetTableName(site)); }
/// <summary> /// Retrieves all instances of the <see cref="!:PromotionModel" /> class. /// </summary> /// <returns> /// An enumerable collection of <see cref="!:PromotionModel" /> instances. /// </returns> public static IEnumerable <Consensus.Marketing.Promotion> FetchAll() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Promotion.FetchAll(site)); }
/// <summary> /// Retrieves a specific <see cref="!:PromotionModel" /> instance. /// </summary> /// <param name="id"> /// The unique value which distinctly identifies the <see cref="!:PromotionModel" /> instance to be returned. /// </param> /// <returns> /// The <see cref="!:PromotionModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found. /// </returns> public static Consensus.Marketing.Promotion FetchById(System.String id) { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Promotion.FetchById(site, id)); }
/// <summary> /// Creates a new <see cref="!:PromotionModel" /> instance. /// </summary> /// <returns> /// A newly instantiated <see cref="!:PromotionModel" /> instance. /// </returns> public static Consensus.Marketing.Promotion Create() { ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite]; return(Promotion.Create(site)); }