public ActionResult CapNhat(UserGroup entity) { if (ModelState.IsValid) { var dao = new UserGroupDAO(); var result = dao.Update(entity); if (result) { SetAlert("Cập nhật thông tin thành công", "success"); return(RedirectToAction("Index", "LoaiThanhVien")); } else { SetAlert("Cập nhật thông tin không thành công", "error"); return(RedirectToAction("CapNhat", "LoaiThanhVien")); } } return(View("Index")); }
public void Update(UserGroupDTO data) { this.CheckDataBeforeSave(data); m_daoUserGroup.Update(data); }