Esempio n. 1
0
 public ActionResult ThemMonChuyenNganh(CT_CHUYENNGANH_MON model)
 {
     if (ModelState.IsValid)
     {
         var dao = new ChuyenNganhDao().them_CTChuyenNganhMon(model);
         return(RedirectToAction("Index", "MonThi"));
     }
     return(View("Index"));
 }
Esempio n. 2
0
 public bool them_CTChuyenNganhMon(CT_CHUYENNGANH_MON model)
 {
     db.CT_CHUYENNGANH_MON.Add(model);
     db.SaveChanges();
     return(true);
 }