Example #1
0
 public void SaveDeThi(DETHI obj)
 {
     try
     {
         db.DETHIs.InsertOnSubmit(obj);
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw e;
     }
 }
Example #2
0
        //Lưu bộ đề thi vào CSDL
        public void SaveBoDeThi(int socauhoi)
        {
            BODETHI bdt = new BODETHI();

            bdt.NGAYTAO  = DateTime.Today;
            bdt.SOCAUHOI = socauhoi;
            db.BODETHIs.InsertOnSubmit(bdt);

            // Submit the change to the database.
            try
            {
                db.SubmitChanges();
            }
            catch (Exception e)
            {
                throw e;
                db.SubmitChanges();
            }
        }
Example #3
0
 //Lưu thông tin
 public void SaveKyThi(KYTHI obj)
 {
     db.KYTHIs.InsertOnSubmit(obj);
     try
     {
         db.SubmitChanges();
     }
     catch (Exception e)
     {
         throw e;
     }
 }