Exemplo n.º 1
0
        public bool InviteForEvent(string eventId, ICustomer customer)
        {
            var eventInQuestion = events.GetEvent(eventId);

            if (eventInQuestion == null)
            {
                throw new EventNotFoundException(eventId);
            }
            var invite = new Invitation(this, eventInQuestion);

            invite.AddCustomerToListofInvitees(customer);
            customer.AddMyInvitations(invite);
            return(true);
        }