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