Example #1
0
        public bool SubscriberExists(int subscriber_id, string subscriber_lastname)
        {
            fly_Subscribers_With_EmailTableAdapter Adapter = new fly_Subscribers_With_EmailTableAdapter();

            FlyerMeDS.fly_Subscribers_With_EmailDataTable dataTable = Adapter.GetSubscriberByIDLastName(subscriber_id, subscriber_lastname);
            return(dataTable.Count > 0);
        }
Example #2
0
        public bool SubscriberExistsByEmail(string email)
        {
            fly_Subscribers_With_EmailTableAdapter Adapter = new fly_Subscribers_With_EmailTableAdapter();

            FlyerMeDS.fly_Subscribers_With_EmailDataTable dataTable = Adapter.GetSubscriberByEmail(email);
            return(dataTable.Count > 0);
        }
Example #3
0
        public FlyerMeDS.fly_Subscribers_With_EmailDataTable GetSubscriberById(Int64 subscriberId)
        {
            fly_Subscribers_With_EmailTableAdapter Adapter = new fly_Subscribers_With_EmailTableAdapter();

            var result = Adapter.GetSubscriberById(subscriberId);

            return(result);
        }
Example #4
0
        /// -----------------------------------------------------------------------------
        ///<summary>
        /// Subscribe
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public bool Subscribe(Int64 subscriber_id)
        {
            fly_Subscribers_With_EmailTableAdapter Adapter = new fly_Subscribers_With_EmailTableAdapter();

            return(Adapter.Subscribe(subscriber_id) > 0);
        }
Example #5
0
        /// -----------------------------------------------------------------------------
        ///<summary>
        /// Unsubscribe by email
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public bool UnsubscribeByEmail(string subscriber_email)
        {
            fly_Subscribers_With_EmailTableAdapter Adapter = new fly_Subscribers_With_EmailTableAdapter();

            return(Adapter.UnsubscribeByEmail(subscriber_email) > 0);
        }