Ejemplo n.º 1
0
        public ActionResult AddNewProjects()
        {
            RouteAuthenticaion routeAuthenticaion = new RouteAuthenticaion();

            if (!routeAuthenticaion.IsAuthorizedPage(MenuIDConstant.ADDNEWPROJECT))
            {
                return(RedirectToAction("UnAuthorized", "Home"));
            }
            else
            {
                return(View());
            }
        }
Ejemplo n.º 2
0
        // 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());
            }
        }
Ejemplo n.º 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));
            }
        }