예제 #1
0
        public virtual MembershipRegistration RegisterAsMember()
        {
            if (IsInActiveMembership)
            {
                throw new ApplicationException(@"Customer already is a member");
            }

            var registration = new MembershipRegistration(this);

            _membership = new Membership();

            return(registration);
        }
예제 #2
0
        public virtual MembershipRegistration RegisterAsMember()
        {
            if (IsInActiveMembership)
            {
                throw new ApplicationException(@"Customer already is a member");
            }

            var registration = new MembershipRegistration(this);

            _membership = new Membership();

            return registration;
        }