コード例 #1
0
        //converts SavedEvents to SavedEvents Model
        public static Eventual.Model.SavedEvent SavedEventEntityToSavedEventModel(Eventual.DAL.SavedEvent savedEvent)
        {
            Eventual.Model.SavedEvent result = new Eventual.Model.SavedEvent
            {
                EventID = savedEvent.EventID,
                UserID  = savedEvent.UserID,
                User    = UserEntityToUserModel(savedEvent.User),
                Event   = EventEntityToEventModel(savedEvent.Event)
            };

            return(result);
        }
コード例 #2
0
        //converts SavedEvents to SavedEvents Model
        public static Eventual.DAL.SavedEvent SavedEventModelToSavedEventEntity(Eventual.Model.SavedEvent savedEvent)
        {
            Eventual.DAL.SavedEvent result = new Eventual.DAL.SavedEvent
            {
                UserID            = savedEvent.UserID,
                EventID           = savedEvent.EventID,
                DateOfSavingEvent = savedEvent.DateOfSavingEvent,
                Event             = EventModelToEventEntity(savedEvent.Event),
                User = UserModelToUserEntity(savedEvent.User)
            };

            return(result);
        }