public PartialViewResult HienThiDanhSach(int CoQuanId, string TenNhom) { NhomNguoiDungService _nhomnguoidung = new NhomNguoiDungService(); var dsNhom = _nhomnguoidung.DanhSach(CoQuanId, TenNhom).ToList(); return(PartialView("_DanhSachNhomNguoiDung", dsNhom)); }
public ActionResult LuuHieuChinh(NhomNguoiDung nhomnguoidung) { NhomNguoiDungService _nhom = new NhomNguoiDungService(); var nhom = _nhom.InsertOrUpdate(nhomnguoidung); return(Json(new { success = nhom != null, data = nhom }, JsonRequestBehavior.AllowGet)); }
public ActionResult HieuChinh(int?id) { NhomNguoiDung nhom = new NhomNguoiDung(); if (id.HasValue && id.Value > 0) { NhomNguoiDungService _nhom = new NhomNguoiDungService(); nhom = _nhom.FindByKey(id.Value); } return(PartialView("_HieuChinhNhom", nhom)); }