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

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

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

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

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

            return(Associate.Create(site));
        }