public int SaveQuestion(TestQuestionsDTO tq_dto) { using (var ctx = new MyDBContext()) { ctx.TestQuestions.Add(tq_dto); ctx.SaveChanges(); return(tq_dto.TestID); } }
public int SaveQuestion(TestQuestionsDTO tq_dto) { MyDBService ser = new MyDBService(); return(ser.SaveQuestion(tq_dto)); }