public ActionResult AddNewProjects() { RouteAuthenticaion routeAuthenticaion = new RouteAuthenticaion(); if (!routeAuthenticaion.IsAuthorizedPage(MenuIDConstant.ADDNEWPROJECT)) { return(RedirectToAction("UnAuthorized", "Home")); } else { return(View()); } }
// 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()); } }
// 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)); } }