Exemple #1
0
        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"));
        }
Exemple #2
0
 public void Update(UserGroupDTO data)
 {
     this.CheckDataBeforeSave(data);
     m_daoUserGroup.Update(data);
 }