Exemplo n.º 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);
        }
Exemplo n.º 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;
        }