Esempio n. 1
0
        public ActionResult HoSoDaDuyet(int id)
        {
            int     permissionId = 7;
            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.HoSoDaDuyets = registrationInterviewRepository.GetRegistrationInterviewsIsCheckByAccountId(account.Id);
            return(View());
        }