public ActionResult QuanLyChung() { int permissionId = 1; Account account = (Account)Session[Utils.Constants.USER_SESSION]; if (account == null) { return(RedirectToRoute("login")); } List <UserPermission> userPermission = (List <UserPermission>)Session[Utils.Constants.USER_PERMISSION_SESSION]; if (userPermission.Where(s => s.PermissionId == permissionId).SingleOrDefault() == null) { return(RedirectToRoute("login")); } ViewBag.DaDangKis = registrationInterviewRepository.GetRegistrationInterviewsDaDangkiSoLuong(); ViewBag.ChuaCapNhats = registrationInterviewRepository.GetRegistrationInterviewsChuaCapNhatSoLuong(); ViewBag.DaHoanThanhs = registrationInterviewRepository.GetRegistrationInterviewsDaHoanThanhSoLuong(); ViewBag.HosoHopLes = registrationInterviewRepository.GetRegistrationInterviewsHopLeSoLuong(); return(View()); }