Пример #1
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:OpportunityModel" /> instances.
        /// </summary>
        /// <param name="productId">
        ///     The value which identifies the <see cref="!:OpportunityModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OpportunityModel" /> instances that match the specified <paramref name="productId" />.
        /// </returns>
        public static IEnumerable <Consensus.Sales.Opportunity> FetchAllByProductId(System.String productId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Opportunity.FetchAllByProductId(site, productId));
        }
Пример #2
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Opportunity.GetTableName(site));
        }
Пример #3
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:OpportunityModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:OpportunityModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Sales.Opportunity> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Opportunity.FetchAll(site));
        }
Пример #4
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:OpportunityModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:OpportunityModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:OpportunityModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Sales.Opportunity FetchById(System.String id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Opportunity.FetchById(site, id));
        }
Пример #5
0
        /// <summary>
        ///     Creates a new <see cref="!:OpportunityModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:OpportunityModel" /> instance.
        /// </returns>
        public static Consensus.Sales.Opportunity Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(Opportunity.Create(site));
        }