//converts EventRegistration to EventRegistration Model
        public static Eventual.DAL.EventRegistration EventRegistrationModelToEventRegistrationEntity(Eventual.Model.EventRegistration eventRegistration)
        {
            Eventual.DAL.EventRegistration result = new Eventual.DAL.EventRegistration
            {
                UserID  = eventRegistration.UserID,
                EventID = eventRegistration.EventID,
                EventRegistrationDate = eventRegistration.EventRegistrationDate,
                Event = EventModelToEventEntity(eventRegistration.Event),
                User  = UserModelToUserEntity(eventRegistration.User)
            };

            return(result);
        }
        //converts EventRegistration to EventRegistration Model
        public static Eventual.Model.EventRegistration EventRegistrationEntityToEventRegistrationModel(Eventual.DAL.EventRegistration eventRegistration)
        {
            Eventual.Model.EventRegistration result = new Eventual.Model.EventRegistration
            {
                UserID  = eventRegistration.UserID,
                EventID = eventRegistration.EventID,
                EventRegistrationDate = eventRegistration.EventRegistrationDate,
            };

            return(result);
        }