コード例 #1
0
        public ActionResult AddNewProjects()
        {
            RouteAuthenticaion routeAuthenticaion = new RouteAuthenticaion();

            if (!routeAuthenticaion.IsAuthorizedPage(MenuIDConstant.ADDNEWPROJECT))
            {
                return(RedirectToAction("UnAuthorized", "Home"));
            }
            else
            {
                return(View());
            }
        }
コード例 #2
0
ファイル: AdminController.cs プロジェクト: vignesh-92/CA-PT
        // GET: Admin
        public ActionResult RolesAndPermissions()//string Email
        {
            RouteAuthenticaion routeAuthenticaion = new RouteAuthenticaion();

            if (!routeAuthenticaion.IsAuthorizedPage(MenuIDConstant.ROLESANDPERMISSION))
            {
                return(RedirectToAction("UnAuthorized", "Home"));
            }
            else
            {
                ViewBag.UserName = HttpContext.User.Identity.Name;
                return(View());
            }
        }
コード例 #3
0
        // GET: CheckList
        public ActionResult Index()
        {
            RouteAuthenticaion routeAuthenticaion = new RouteAuthenticaion();

            if (!routeAuthenticaion.IsAuthorizedPage(MenuIDConstant.CHECKLIST))
            {
                return(RedirectToAction("UnAuthorized", "Home"));
            }
            else
            {
                string           queryString = "?UserID=" + HttpContext.User.Identity.Name;
                List <CheckList> response    = CABusinessProjectTrackingAPIClient.GetHttpResponse <List <CheckList> >(queryString, CABPTMethodConstants.CHECKLIST);
                ViewBag.RoleList = CABusinessProjectTrackingAPIClient.GetHttpResponse <List <Role> >(queryString, CABPTMethodConstants.GETROLELIST);
                return(View(response));
            }
        }