Пример #1
0
 public int SaveQuestion(TestQuestionsDTO tq_dto)
 {
     using (var ctx = new MyDBContext())
     {
         ctx.TestQuestions.Add(tq_dto);
         ctx.SaveChanges();
         return(tq_dto.TestID);
     }
 }
Пример #2
0
        public int SaveQuestion(TestQuestionsDTO tq_dto)
        {
            MyDBService ser = new MyDBService();

            return(ser.SaveQuestion(tq_dto));
        }