Ejemplo n.º 1
0
        private TalkEntity CreateNewTalk(TalkCreationRequest request)
        {
            var defaultQuestionnaire = DefaultQuestionnaire.GetDefaultQuestionnaire();
            var questionnaireId      = _dbRepository.InsertQuestionnaire(defaultQuestionnaire);

            var talkDTO = new TalkEntity
            {
                Name             = request.Name,
                EasyAccessKey    = request.EasyAccessKey,
                Topic            = request.Topic,
                Description      = request.Description,
                SpeakerName      = request.SpeakerName,
                TalkCreationTime = DateTime.Now,
                TalkStartTime    = request.TalkStartTime,
                QuestionnaireId  = questionnaireId
            };

            return(talkDTO);
        }
Ejemplo n.º 2
0
 public static IList <Question> GetQuestionnaire()
 {
     return(DefaultQuestionnaire.GetDefaultQuestionnaire());
 }