public int Insert(QuestionDTO quest) { var questtoAdd = QuestionDTO.ToQuestion(quest); QuestionRepository.Insert(questtoAdd); return(questtoAdd.Id); }
public void CreateNewQuestion(QuestionDTO newQuestion) { Database.Questions.Create(newQuestion.ToQuestion()); Database.Save(); }