public bool IsPSubscriber(int subscriberid) { FlyerMeDS.fly_psubscribersDataTable psubs = Adapter.GetPSubscriberByID(subscriberid); if (psubs.Count > 0) { return(true); } else { return(false); } }
public bool ActivateSubscriber(int subscriberid) { FlyerMeDS.fly_psubscribersDataTable psubs = Adapter.GetPSubscriberByID(subscriberid); if (psubs.Count == 0) { // no matching record found, return false return(false); } FlyerMeDS.fly_psubscribersRow psubsrow = psubs[0]; psubsrow.email_confirmed = true; psubsrow.active = true; // Update the order record int rowsAffected = Adapter.Update(psubsrow); // Return true if precisely one row was updated, // otherwise false return(rowsAffected == 1); }