Ejemplo n.º 1
0
        public static System.String GetTableName()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.GetTableName(site));
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Retrieves a collection of <see cref="!:MemberPeriodModel" /> instances.
        /// </summary>
        /// <param name="memIdId">
        ///     The value which identifies the <see cref="!:MemberPeriodModel" /> instances to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:MemberPeriodModel" /> instances that match the specified <paramref name="memIdId" />.
        /// </returns>
        public static IEnumerable <Consensus.Membership.MemberPeriod> FetchAllByMemIdId(System.String memIdId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.FetchAllByMemIdId(site, memIdId));
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Retrieves a specific <see cref="!:MemberPeriodModel" /> instance.
        /// </summary>
        /// <param name="id">
        ///     The unique value which distinctly identifies the <see cref="!:MemberPeriodModel" /> instance to be returned.
        /// </param>
        /// <returns>
        ///     The <see cref="!:MemberPeriodModel" /> instance that matches the specified <paramref name="id" />; or null, if no matching instance can be found.
        /// </returns>
        public static Consensus.Membership.MemberPeriod FetchById(System.String id)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.FetchById(site, id));
        }
Ejemplo n.º 4
0
        /// <summary>
        ///     Retrieves all instances of the <see cref="!:MemberPeriodModel" /> class.
        /// </summary>
        /// <returns>
        ///     An enumerable collection of <see cref="!:MemberPeriodModel" /> instances.
        /// </returns>
        public static IEnumerable <Consensus.Membership.MemberPeriod> FetchAll()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.FetchAll(site));
        }
Ejemplo n.º 5
0
        /// <summary>
        ///     Creates a new <see cref="!:MemberPeriodModel" /> instance.
        /// </summary>
        /// <returns>
        ///     A newly instantiated <see cref="!:MemberPeriodModel" /> instance.
        /// </returns>
        public static Consensus.Membership.MemberPeriod Create()
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.Create(site));
        }
Ejemplo n.º 6
0
        /// <summary>
        ///     Cancels existing DDs on <see cref="!:MemberPeriodModel" /> instance.
        /// </summary>
        /// <param name="memberPeriodId">
        ///     The value which identifies the <see cref="!:MemberPeriodModel" /> instance to be modified.
        /// </param>
        /// <param name="directDebitId">
        ///     The new Direct Debit Id which identifies the instance which should not be modified.
        /// </param>
        /// <returns>
        ///     The <see cref="!:MemberPeriodModel" /> instance that match the specified <paramref name="memberPeriodId" />.
        /// </returns>
        public static Consensus.Membership.MemberPeriod CancelExistingDirectDebits(System.String memberPeriodId, System.String directDebitId)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.CancelExistingDirectDebits(site, memberPeriodId, directDebitId));
        }
Ejemplo n.º 7
0
        /// <summary>
        ///     Performs rollback membership on a single <see cref="!:MemberPeriodModel" /> instance.
        ///                     Functionality replicated from the SQL performed in V6.5.
        /// </summary>
        /// <param name="memberPeriodId">
        ///     The value which identifies the <see cref="!:MemberPeriodModel" /> instance to be modified.
        /// </param>
        /// <param name="status">
        ///     The status value which should be set.
        /// </param>
        /// <returns>
        ///     The <see cref="!:MemberPeriodModel" /> instance that match the specified <paramref name="memberPeriodId" />.
        /// </returns>
        public static Consensus.Membership.MemberPeriod RollbackMembership(System.String memberPeriodId, System.String status)
        {
            ConsensusSite site = ConsensusDomain.Configuration[ConsensusDomain.Configuration.DefaultSite];

            return(MemberPeriod.RollbackMembership(site, memberPeriodId, status));
        }