public ActionResult ChinhSuaQuyen(string MaQuyen) { var model = QuyenQueries.LayDanhSachQuyen(); ViewBag.Quyen = QuyenQueries.LayThongTinChiTiet(MaQuyen); return(View(model)); }
public ActionResult PhanQuyen(string MaQuyen) { //Lấy thông tin chi tiết quyền ViewBag.Quyen = QuyenQueries.LayThongTinChiTiet(MaQuyen); //Lay danh sach action ViewBag.Action = LoaiActionQueries.LayDanhSachTinhNang(); //Lay danh sach action cua 1 quyen ViewBag.PhanQuyen = PhanQuyenQueries.LayDanhSachPhanQuyen(MaQuyen); return(View()); }