Exemplo n.º 1
0
 public ActionResult AddEQ(Exam_Questions exam_Questions)
 {
     if (ModelState.IsValid)
     {
         var  dao = new UserDao();
         long id  = dao.InsertEQ(exam_Questions);
     }
     else
     {
     }
     return(View("Index"));
 }
Exemplo n.º 2
0
 public long InsertEQ(Exam_Questions exam_Questions)
 {
     db.Exam_Questions.Add(exam_Questions);
     db.SaveChanges();
     return(exam_Questions.Exam_QuestionsID);
 }