public SessionsCollectionState Create(session model)
        {
            var session = new SessionsCollectionState {
                id             = model.id,
                description    = model.description,
                initialDate    = model.initialDate,
                endDate        = model.endDate.Value,
                speaker        = model.speakerName + " " + model.lastName,
                title          = model.title,
                profileSpeaker = model.linkOfSpeaker,
                _links         = new LinkCollection()
            };

            session._links.self = _links.Self(model.id);
            return(session);
        }
        public SessionSingleState Create(session model)
        {
            var session = new SessionSingleState
            {
                id             = model.id,
                description    = model.description,
                initialDate    = model.initialDate,
                endDate        = model.endDate.Value,
                speaker        = model.speakerName + " " + model.lastName,
                title          = model.title,
                profileSpeaker = model.linkOfSpeaker,
                _event         = eventFactory.Create(model.@event),
                questions      = model.question.Select <question, QuestionsCollectionState>(i => questionFactory.Create(i)),
                _links         = new SessionSingleState.Link()
            };

            session._links.self      = _links.Self(model.id);
            session._links.questions = _links.Questions(model.id);
            session._links._event    = _links.Event(model.eventId.Value);

            return(session);
        }