protected override bool AuthorizeCore(HttpContextBase httpContext) { AdminLogin adminloggin = (AdminLogin)HttpContext.Current.Session[Common.CommonConstants.ADMIN_SESSION]; NhanVienAccess nvac = new NhanVienAccess(); if (adminloggin != null && nvac.KiemTraDangNhap(adminloggin.username, adminloggin.password, permissionAdmin)) { return(true); } return(false); }