public ActionResult EditHocHam(tb_HocHam model) { if (ModelState.IsValid) { unitOfWork.HocHamRepository.Update(model); unitOfWork.Save(); return(RedirectToAction(nameof(DanhSachHocHam))); } return(View(model)); }
// GET: HocHam/Create public ActionResult CreateHocHam() { var vm = new tb_HocHam(); return(View(vm)); }