示例#1
0
 public ActionResult Details(int actionId)
 {
     var model = new PagesModel();
     model.ActionId = actionId;
     model.LoadAccessPools();
     return View(model);
 }
示例#2
0
        public ActionResult RemoveAccessPoolFromPage(int actionId, int accessPoolId)
        {
            var model = new PagesModel { ActionId = actionId };
            model.RemovePageFromPool(accessPoolId);

            ShowSuccessMessage("Access Pool removed successfully.");
            return RedirectToAction("Details", "Pages", new { actionId = model.ActionId });
        }
示例#3
0
        public ActionResult AddPageToAccessGroup(int accessGroupId, int actionId)
        {
            var model = new PagesModel();
            model.AddPageToPool(accessGroupId);
            ShowSuccessMessage("Access Pool added to page successfully");
//            return RedirectToAction("Details", "Pages", new { actionId = model.ActionId });
            return Json(Url.Action("Details", "Pages", new { actionId = model.ActionId }));
        }