コード例 #1
0
        public PartialViewResult HienThiDanhSach(int CoQuanId, string TenNhom)
        {
            NhomNguoiDungService _nhomnguoidung = new NhomNguoiDungService();
            var dsNhom = _nhomnguoidung.DanhSach(CoQuanId, TenNhom).ToList();

            return(PartialView("_DanhSachNhomNguoiDung", dsNhom));
        }
コード例 #2
0
        public ActionResult LuuHieuChinh(NhomNguoiDung nhomnguoidung)
        {
            NhomNguoiDungService _nhom = new NhomNguoiDungService();
            var nhom = _nhom.InsertOrUpdate(nhomnguoidung);

            return(Json(new
            {
                success = nhom != null,
                data = nhom
            }, JsonRequestBehavior.AllowGet));
        }
コード例 #3
0
        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));
        }