Пример #1
0
 public ActionResult EditHocHam(tb_HocHam model)
 {
     if (ModelState.IsValid)
     {
         unitOfWork.HocHamRepository.Update(model);
         unitOfWork.Save();
         return(RedirectToAction(nameof(DanhSachHocHam)));
     }
     return(View(model));
 }
Пример #2
0
        // GET: HocHam/Create
        public ActionResult CreateHocHam()
        {
            var vm = new tb_HocHam();

            return(View(vm));
        }