public Registration ProcessRegistration(UserContext userContext, ICollection<Attendee> attendees)
        {
            Registration returnRegistration = new Registration();
            List<Attendee> registrationAttendees = new List<Attendee>(UnityCache.ResolveDefault<IRegistrationEngine>().ProcessAttendees(userContext, attendees));

            Registration newReg = new Registration();
            newReg.Attendees = registrationAttendees;

               returnRegistration= UnityCache.ResolveDefault<IRegistrationAccessor>().AddRegistration(userContext, newReg);

            return returnRegistration;
        }
        public ICollection<Attendee> ProcessAttendees(UserContext userContext, ICollection<Attendee> attendees)
        {
            List<Attendee> registrationAttendees = new List<Attendee>();

            foreach (Attendee a in attendees)
            {
                if (a.Id == null)
                {
                    registrationAttendees.Add(UnityCache.ResolveDefault<IAttendeeAccessor>().AddAttendee(userContext, a));
                }
                else
                {
                    registrationAttendees.Add(a);
                }
            }

            return registrationAttendees;
        }