public ActionResult Details(int actionId) { var model = new PagesModel(); model.ActionId = actionId; model.LoadAccessPools(); return View(model); }
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 }); }
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 })); }