Esempio n. 1
0
        public int Insert(QuestionDTO quest)
        {
            var questtoAdd = QuestionDTO.ToQuestion(quest);

            QuestionRepository.Insert(questtoAdd);

            return(questtoAdd.Id);
        }
Esempio n. 2
0
 public void CreateNewQuestion(QuestionDTO newQuestion)
 {
     Database.Questions.Create(newQuestion.ToQuestion());
     Database.Save();
 }